grep 'name = ' ms-litebox-Cargo.lock | wc -l 238
grep 'name = ' ms-litebox-Cargo.lock | sort -u | wc -l 221
I've always done 'sort | uniq'. Never bothered to check for the the unique flag to sort. Although 'uniq -c' is quite nice to have.
-c, --count prefix lines by the number of occurrences
I've always done 'sort | uniq'. Never bothered to check for the the unique flag to sort. Although 'uniq -c' is quite nice to have.