Unix Koans
prirai.github.io
prirai.github.io
Somehow I can't find it, or the collection it was in, anywhere... maybe this rings a bell with anyone.
Wish there was a hard copy. Would make a great goofy gift for coworkers.
Hard copy:
https://www.amazon.com/UNIX-Programming-Addison-Wesley-Profe...
Soft copy:
http://catb.org/~esr/writings/taoup/
http://catb.org/~esr/writings/taoup/html/
The original Unix koans are found in Appendix D: http://catb.org/~esr/writings/taoup/html/unix_koans.html
Additional Unix koans were added (and removed) over time: http://catb.org/~esr/writings/unix-koans/
How about "How many hours would you require to write the shell script so that it handles all allowed file names appropriately?". As far as I am concerned the classes of errors are certainly different, but shell scripts have their own pitfalls.
Just yesterday I came across a one-liner that didn't work as soon as the filename had a space in the filename.
(And if you really want to level up, write your scripts to handle file names with embedded newlines.)
Unix nature being "3 lb of VAX", the most popular hardware running Unix at the time, suggests that practicality is more important than idealistic purism. Tigers like to stay on the ground but sometimes they jump in the air so saying "tigers are creatures of the ground" have exceptions that make sense. A similar idea applies to eagles. These exceptions are part of nature.
Exceptions to the rule in favor of practicality are okay and still make sense. These exceptions are still part of Unix nature.