[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: Shell scripting help



Hi Bill

Yes I know of the useradd command but this one will do a quite different
job.
I can't seem to get the cut command to work within the script. Of course
there will be plenty of others commands
to be added once I get this sussed

Many thanks

Mike

-----Original Message-----
From: redhat-list-admin redhat com
[mailto:redhat-list-admin redhat com]On Behalf Of Bill Horne
Sent: Monday, 2 December 2002 06:40
To: redhat-list redhat com
Subject: Re: Shell scripting help


----- Original Message ----- 
From: "Mikevl" <Mikevl paradise net nz>


> Hi
> 
> Can anybody help with this simple script
> 
> Command is useradd userfile
> 
> 
> useradd
> userfile=$1
> s=0
> for i in 'cat $userfile ';do
>         $NAME='cut -d : -f1'
>         echo $NAME
> done

info cut.

HTH.

Bill



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request redhat com?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]