ksh script help needed

From: SIMEONE, Allan J. <Allan.SIMEONE_at_rp-rorer.com>
Date: Thu, 02 Oct 1997 18:54:25 -0400

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
Received on Fri Oct 03 1997 - 01:08:44 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT