Pipes Rock

One of the reasons unix is awesome — PIPES.

I had a list of people with duplicates. I needed a count of unique names. This command did it quickly.

sort count.txt | uniq -c | wc -l

Leave a Reply

Your email address will not be published. Required fields are marked *