----- Original Message -----
From: Jack Barnett <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, December 07, 1999 7:16 PM
Subject: Re: Array in #!/bin/sh


>
> Thanks, that is exactly what I was looking for, it worked perfect.
>
> Basically I was writing a script to check the /etc/passwd for for errors,
> users without passwords, users with uid's of 0, things like that, what I
did
> was this
>
> list=`cat /etc/passwd | awk -F: '{print $1}'`
> for username in $list; do
>  # did some stuff
> done
>
> that would of be extermely hard if not impossiable without your help,
thanks
>
> Jack
>
>
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: Jack Barnett <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Tuesday, December 07, 1999 11:41 AM
> Subject: Re: Array in #!/bin/sh
>
>
> > "Jack Barnett" <[EMAIL PROTECTED]> writes:
> >
> > > Does an array exist in the oringial bourne shell?
> > > If so, how could anyone provide a short example?
> >
> > No arrays in the classic sense, but you can do things like:
> >
> > array='jim bob al'
> > for i in $array
> >         do echo $i
> > done
> >
> > If you have a specific problem you are trying to solve, maybe we can
> > help more with more specifics.
> >
> > rw2
> >
> > --
> > What if the Hokey Pokey really *is* what it's all about?
>
>
>

Reply via email to