The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




Thread: Command Help!
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-23-2006
pleasehelpme pleasehelpme is offline
Registered User
  
 

Join Date: May 2006
Posts: 1
Command Help!

Hello Everyone,


Ok lets say I have 2 files: allusers.txt and specificusers.txt

The allusers.txt is a list of all usernames, and specificusers.txt has only about 10 usernames (of allusers.txt). If allusers.txt has 100 usernames, how do I show the remaining 90 usernames? I tried the diff and commm command and it doesnt work. I tried:

comm -13 specificusers.txt allusers.txt > Show.txt
comm -23 specificusers.txt allusers.txt > Show1.txt
cat Show.txt Show1.txt > Main.txt

Ok the Main.txt has repeats of the usernames i need deleted. Is there anything that deletes duplicate lines in Main.txt (when i say duplicate, i mean the duplicated line & also the original), so it would show the 90 that arent in the specificusers.txt file.


(if you have another method, please help!!!)

THANK YOU!