cat file.txt | sort | uniq | wc -l ## notice uniq
it gives you the count of unique lines. If you omit the sort in that instance it will fold duplicates together a/b/a is three lines, not two.
cat file.txt | sort | uniq | wc -l ## notice uniq
it gives you the count of unique lines. If you omit the sort in that instance it will fold duplicates together a/b/a is three lines, not two.