Could be time for another Pizza Challenge. Lots of new options on the market. Not sure I'm up for a full week of eating only frozen pizza though...
Sunday, September 03, 2017
Friday, September 01, 2017
Awk! sed grep.
Challenge Accepted!
Create a file containing a list of the artists with music files in the m4p format using a single line of piped together unix shell commands. Each artist name should be listed only once.
find `pwd` -name *.m4p | sed 's/ /_/g' | sed 's/\// /g' | awk '{print $5}' | sed 's/_/ /g' | awk '!seen[$0]++' > ArtistsWithProtectedFiles.txt
Bonus Trivia Fact: The newest of those commands (awk) was created around 40 years ago. It still works.
Subscribe to:
Posts (Atom)