argc/argv in bash!

2002-07-14 Thread Balaji, Pavan
How do we use argc and argv (C like) in bash scripts? Pavan Balaji, CIS Graduate Student, Ohio State University Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections -- Rash To Unsubscribe: send mail to [EMAIL PROTECTED]

Re: argc/argv in bash!

2002-07-14 Thread Giorgos Keramidas
On 2002-07-14 12:53 +, Balaji, Pavan wrote: How do we use argc and argv (C like) in bash scripts? The number of command line arguments is $#. For example: % cat foo.sh #!/bin/sh echo $# % sh foo.sh 0 % sh foo.sh hello world 2

RE: argc/argv in bash!

2002-07-14 Thread Balaji, Pavan
, July 14, 2002 3:05 PM To: Balaji, Pavan Cc: '[EMAIL PROTECTED]' Subject: Re: argc/argv in bash! On 2002-07-14 12:53 +, Balaji, Pavan wrote: How do we use argc and argv (C like) in bash scripts? The number of command line arguments is $#. For example: % cat foo.sh