LINUX Bash Shell Programing help

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.

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
alinawaz
Cadet
 
Posts: 1
Joined: Sat Nov 15, 2003 10:38 pm
Website: http://www.offtheway.cjb.net
WLM: iaf47@hotmail.com
Yahoo Messenger: iaf2003@yahoo.com
Location: Karachi, Pakistan

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

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
zaeemarshad
Lieutenant Colonel
 
Posts: 660
Joined: Sat Jul 06, 2002 12:35 pm
Website: http://zaeem.no-ip.org
WLM: zarshadvirk@hotmail.com
Yahoo Messenger: negativecreep61@yahoo.com
AOL: zarshadvirk
Location: Islamabad

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
slick
Naik
 
Posts: 56
Joined: Fri Sep 05, 2003 1:29 am
Location: CA

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.
Adnan_Khan
Cadet
 
Posts: 2
Joined: Fri Feb 04, 2005 12:22 pm
Website: http://www.urdupages.com
WLM: madnankn@urdupages.com
Yahoo Messenger: madnankn@yahoo.com
Location: Faisalabad


Return to “%s” Programming

Who is online

Users browsing this forum: No registered users and 2 guests

cron