From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078618110223.tru64-unix-managers.marc@archive.invalid> From: "SIMEONE, Allan J." Date: Thu, 02 Oct 1997 22:54:25 +0000 To: tru64-unix-managers Subject: ksh script help needed X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078618110223 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