Sophie (
sophie) wrote in
command_liners2011-11-30 07:40 pm
sort and uniq
Just a quickie - today I learned that instead of piping something through
Unfortunately this doesn't help when you're doing something like
sort and then piping the output of that through uniq, you can just use sort -u, which will do both operations at once.Unfortunately this doesn't help when you're doing something like
sort | uniq -c | sort -n to sort by the number of times a line appears, but it's still a nice tip. :)