[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Shell scripting help
- From: Mikevl <Mikevl paradise net nz>
- To: "Redhat-List (E-mail)" <redhat-list redhat com>
- Subject: Shell scripting help
- Date: Sun Dec 1 13:52:02 2002
Thanks Robert
No I didn't name the file useradd it has quite a different name
The cut command works from the command line but from the script I get
[root Lizzi root]# ./addscusers scusers
./addscusers: =/bin/cut -d : -f1: No such file or directory
Many thanks
Mike
-----Original Message-----
From: redhat-list-admin redhat com
[mailto:redhat-list-admin redhat com]On Behalf Of Robert P. J. Day
Sent: Monday, 2 December 2002 07:08
To: redhat-list redhat com
Subject: Re: Shell scripting help
On Sun, 1 Dec 2002, Bill Horne wrote:
> ----- 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.
*please* tell me you didn't actually name the executable
script file "useradd".
rday
--
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]