@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 ;-)
Conversation
Notices
-
Dave Morriss (perloid@mastodon.sdf.org)'s status on Friday, 01-Mar-2019 12:42:49 EST Dave Morriss