The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 08-07-2007
paqman paqman is offline
Registered User
 

Join Date: Jul 2007
Posts: 21
Quote:
Originally Posted by Shell_Life View Post
Code:
cut -d':' -f2 /etc/myusers > $$TempUsers
cut -d':' -f1 /etc/passwd > $$EtcUsers
diff $$TempUsers $$EtcUsers
rm -f $$*
Well, I'm not sure how to read that ouput from the diff command. I looked at the man page, but it still doesn't make much sense. I can see that it's listing all the users, and then every so often printing some weird numbers, I'm assuming are correlating to the lines or something.

What I need is a nice clean output of simply the lines in /etc/password that do not have a corresponding userid in /etc/myusers.
Reply With Quote