[sllug-members]: Script Question

Jason Clint jason_clint at sento.com
Mon May 5 09:44:37 MDT 2008


I am trying to do a Linux script to compare 2 files in some way and only
return a certain result.

File 1 = /etc/passwd
File 2 = nonusers.txt

File 2 has all the nonusers in it and I need to make sure my script
doesn't accidently pull out any of them.  This is a for a manual ldap
import and when I ran the script the first time I had a user named "ns"
so it pulled out "ns" and "nscd" which is a nonuser.  Anyway I was
trying to use a script to compare the 2 and only return a result that
didn't have "nologin" or even just return all results except the ones
that were in the status list nonusers.txt.  I'm kind of new at shell
scripting so any help would be greatly appreciated.

Junior Systems Administrator
Sento IT Jason Clint

(801) 431-9297
(801) 661-4139


More information about the sllug-members mailing list