IL PROTECTED]]
> Sent: Sunday, 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 script
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
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