File1 is a subset of File2 ???

17 April 2013 | Ngoprek, SLab, Today`s Script

How to check whether file1 is a subset of file2?
Please try this command :
comm -23 <(sort filename1 | uniq) <(sort filename2 | uniq) | head -1

No output If file1 is a subset file2


Leave a Reply