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.
No comments:
Post a Comment