@claudiom Nice. I have written stuff using Awk to do frequency counts but 'uniq -c' is so elegant.
Also, in Bash the newline for the first 'tr' can be written as $'\n' rather than the two line thing.
Not sure about the sed bit. I'd have used 'sed -n 1p' but maybe I'm wrong ;-)

Sign in to participate in the conversation
Mastodon @ SDF

"I appreciate SDF but it's a general-purpose server and the name doesn't make it obvious that it's about art." - Eugen Rochko