From: "SIMEONE, Allan J." <Allan.SIMEONE () rp-rorer ! com>
To: tru64-unix-managers
Subject: ksh script help needed
Date: Thu, 02 Oct 1997 22:54:25 +0000 [thread overview]
Message-ID: <96078618110223.tru64-unix-managers.marc@archive.invalid> (raw)
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
reply other threads:[~1997-10-02 22:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox