Simple challenge 09-13-2013, 01:21 AM
#1
Credits to Tarball for challenge, thought this was cool.
--
Unix master Myong was told of a stray cat that had taken up residence in the operations hall, sleeping in the server cabinets and napping atop the ancient CRTs for warmth. The situation had grown objectionable when the creature began using a crate of spare cables as a litterbox.
Myong captured the cat and placed it on a table before six monks of the Clan of Iron Bones, saying, “If each of you can speak a command line which performs the same function as cat, I will spare this animal. If not, I will kill it.”
The first monk quickly said, “cat”.
The second said, “grep ^”.
The third said, “sed s/^//”.
The fourth said, “tr x x <”.
The fifth said, “perl -pe 0”.
You are the sixth.
Rules:
--
Unix master Myong was told of a stray cat that had taken up residence in the operations hall, sleeping in the server cabinets and napping atop the ancient CRTs for warmth. The situation had grown objectionable when the creature began using a crate of spare cables as a litterbox.
Myong captured the cat and placed it on a table before six monks of the Clan of Iron Bones, saying, “If each of you can speak a command line which performs the same function as cat, I will spare this animal. If not, I will kill it.”
The first monk quickly said, “cat”.
The second said, “grep ^”.
The third said, “sed s/^//”.
The fourth said, “tr x x <”.
The fifth said, “perl -pe 0”.
You are the sixth.
Rules:
- Must print it to terminal
- Must be able to run in Bash shell, utilities like tcl and awk are allowed but no other shells like cshell or fish
- No invoking text editors like nano or vi, unless it prints directly to terminal
- Can't use a solution posted before
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)












![[Image: 7ajmN5P.jpg]](https://i.imgur.com/7ajmN5P.jpg)




