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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bill Horne Sent: Monday, 2 December 2002 06:40 To: [EMAIL PROTECTED] Subject: Re: Shell scripting help ----- Original Message ----- From: "Mikevl" <[EMAIL PROTECTED]> > 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:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list