DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   *nix Software (http://www.daniweb.com/forums/forum111.html)
-   -   Help! How to make a csh receive argvs from command line? (http://www.daniweb.com/forums/thread8275.html)

rock31 Jul 21st, 2004 12:12 pm
Help! How to make a csh receive argvs from command line?
 
Hello,
Would anyone please tell me how to write a shell script which receives input argument from command line?
Thanks alot

alc6379 Jul 21st, 2004 4:11 pm
Re: Help! How to make a csh receive argvs from command line?
 
What have you got so far?

I know that bash uses $1, $2, $3, and so on as variables for command arguments. I imagine csh might be similar, if not the same. Have you tried reading the manpage on csh? It might give you some pointers on accepting command arguments.

rock31 Jul 27th, 2004 9:07 am
Re: Help! How to make a csh receive argvs from command line?
 
Quote:

Originally Posted by alc6379
What have you got so far?

I know that bash uses $1, $2, $3, and so on as variables for command arguments. I imagine csh might be similar, if not the same. Have you tried reading the manpage on csh? It might give you some pointers on accepting command arguments.

Thanks alot
Rock31


All times are GMT -4. The time now is 12:13 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC