Number of non repeating lines – unique count May 5, 2023 by Tarik You could try using uniq man uniq and do the following sort file | uniq -u | wc -l