LINUX Bash Shell Programing help

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.
alinawaz
Cadet
Posts: 1
Joined: Sat Nov 15, 2003 10:38 pm
Location: Karachi, Pakistan
Contact:

LINUX Bash Shell Programing help

Postby alinawaz » Sat Nov 15, 2003 11:07 pm

AOA
I am a BCS 4th semester student, curently on this semeter we study LINUX shell programing... on BASH...
I got an assignment to impliment to impliment LS, COPY, Rename, and so on commands with the help of bash shell scripting...
plz help me in this regards...

Allah hafiz
http://www.offtheway.cjb.net
http://www.pakview.cjb.net
______________________
M. Ali Nawaz Adil
BCS from IMCS
website & graphics designer

LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re: LINUX Bash Shell Programing help

Postby LinuxFreaK » Sun Nov 16, 2003 12:08 am

Dear Alinawaz,
Salam,

alinawaz wrote:AOA
I am a BCS 4th semester student, curently on this semeter we study LINUX shell programing... on BASH...
I got an assignment to impliment to impliment LS, COPY, Rename, and so on commands with the help of bash shell scripting...
plz help me in this regards...

Allah hafiz
http://www.offtheway.cjb.net
http://www.pakview.cjb.net


Please Check Out Advanced Bash-Scripting Guide and i hope it will help you alot to work on your assignment.

Best Regards.
Farrukh Ahmed

zaeemarshad
Lieutenant Colonel
Posts: 660
Joined: Sat Jul 06, 2002 12:35 pm
Location: Islamabad
Contact:

Postby zaeemarshad » Sun Nov 16, 2003 1:56 am

do u want to implement ls rm and cp features via a single bash shell script or multiple scripts. a simple ls script can be like

./list /etc

and the code is

#!/bin/bash
ls $1


this one liner will do the trick. the bash advanced shell scripting howto is nice. i suggest u to buy linux programming by example written by richard stone and neil mathew and published by wrox press. this is a good book for general linux programming and has very detailed explanation of bash shell scripting.

Regards
Zaeem Arshad

slick
Naik
Posts: 56
Joined: Fri Sep 05, 2003 1:29 am
Location: CA

Postby slick » Mon Nov 17, 2003 11:53 am

impliment LS, COPY, Rename, and so on commands with the help of bash shell scripting..

implementing it would just be using ls, cp, mv, and so on on a simple bash shell..but if you want to make your own shell that uses these functions, you mite be talking about C code that uses exec* command to execute these from a shell?
I only run as fast as my angels can fly

Adnan_Khan
Cadet
Posts: 2
Joined: Fri Feb 04, 2005 12:22 pm
Location: Faisalabad
Contact:

Re: LINUX Bash Shell Programing help

Postby Adnan_Khan » Sat Feb 05, 2005 5:24 am

thanx for link
LinuxFreaK wrote:Dear Alinawaz,
Salam,

alinawaz wrote:AOA
I am a BCS 4th semester student, curently on this semeter we study LINUX shell programing... on BASH...
I got an assignment to impliment to impliment LS, COPY, Rename, and so on commands with the help of bash shell scripting...
plz help me in this regards...

Allah hafiz
http://www.offtheway.cjb.net
http://www.pakview.cjb.net


Please Check Out Advanced Bash-Scripting Guide and i hope it will help you alot to work on your assignment.

Best Regards.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests