* ksh script help needed
@ 1997-10-02 22:54 SIMEONE, Allan J.
0 siblings, 0 replies; only message in thread
From: SIMEONE, Allan J. @ 1997-10-02 22:54 UTC (permalink / raw)
To: tru64-unix-managers
hello,
I'm sure this is a no-brainer for many, but I'm just starting out in
scripting.
I'm trying to create a script perferrably in ksh. I have a file with
the following example...
mkdir /home/user
mkdir /home/user1
.
.
.
What I want to do is grep the user and user1 part and see if they
already exist in the
passwd file. I figured out how to grab it in a script and print out the
info with
the while statement and with awk. Whether I should be using that in
the first, place
I'm sure you'll let me know :-).
the awk command I have is this..
awk -F\/ '{print $3}' filename which prints it out to the terminal just
fine.
however, I can't seem to grab that info and pipe it into a grep command
to see if it is in the passwd file.
any help would be appreciated.
thanks,
Allan
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-10-02 22:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-10-02 22:54 ksh script help needed SIMEONE, Allan J.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox