User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the *nix Software section within the Tech Talk category of DaniWeb, a massive community of 456,428 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,581 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our *nix Software advertiser: Lunarpages Linux Web Hosting
Views: 2902 | Replies: 2
Reply
Join Date: Jul 2004
Posts: 2
Reputation: rock31 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
rock31 rock31 is offline Offline
Newbie Poster

Help! How to make a csh receive argvs from command line?

  #1  
Jul 21st, 2004
Hello,
Would anyone please tell me how to write a shell script which receives input argument from command line?
Thanks alot
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2003
Location: Nashville, TN
Posts: 2,333
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Rep Power: 11
Solved Threads: 102
Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: Help! How to make a csh receive argvs from command line?

  #2  
Jul 21st, 2004
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.
Alex Cavnar, aka alc6379
Reply With Quote  
Join Date: Jul 2004
Posts: 2
Reputation: rock31 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
rock31 rock31 is offline Offline
Newbie Poster

Re: Help! How to make a csh receive argvs from command line?

  #3  
Jul 27th, 2004
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
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb *nix Software Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the *nix Software Forum

All times are GMT -4. The time now is 1:20 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC