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!

To the final output use sort -u
Some thing like

cat final.txt | sort -u > final1.txt

So now final1.txt will have only unique ids.

I think, following should work:

sort -u allusers.txt > tmp1
sort -u specificusers.txt > tmp2
comm -23 tmp1 tmp2 > final.txt