954,148 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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

rock31
Newbie Poster
2 posts since Jul 2004
Reputation Points: 10
Solved Threads: 0
 

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.

alc6379
Cookie... That's it
Team Colleague
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147
 

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

rock31
Newbie Poster
2 posts since Jul 2004
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: