The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



Thread: Command Help!
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 05-22-2006
tayyabq8's Avatar
tayyabq8 tayyabq8 is offline
UNIX Hobbyist
 

Join Date: Nov 2004
Location: /World/Asia/MiddleEast/Kuwait/Salmiya
Posts: 525
I think, following should work:
Code:
sort -u allusers.txt > tmp1
sort -u specificusers.txt > tmp2
comm -23 tmp1 tmp2 > final.txt
Reply With Quote