Hello,
Would anyone please tell me how to write a shell script which receives input argument from command line?
Thanks alot

Recommended Answers

All 2 Replies

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.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.