Login Register


Simple challenge filter_list
Author
Message
Simple challenge #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:
  • 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

Reply

RE: Simple challenge #2
the cat dies
[9/7/2013 6:19:12 PM] Starfall: it's your fault

Already lost. :p

Reply

RE: Simple challenge #3
(09-13-2013, 01:37 AM)Kirito Wrote: the cat dies
[9/7/2013 6:19:12 PM] Starfall: it's your fault

Already lost. :p

You still have a chance to reclaim yourself though, we have an entire kitten mill to kill until someone gets it right.

Reply

RE: Simple challenge #4
Code:
deadkitty='cat' && $deadkitty

Just so nobody else can use it. Tongue
[Image: 7ajmN5P.jpg]

Telegram: Oni_SL (Link)

Reply

RE: Simple challenge #5
(09-13-2013, 01:56 AM)Oni Wrote: Just so nobody else can use it. Tongue

There's still plenty of other solutions OniOni, people just have to figure them out.

Reply

RE: Simple challenge #6
By the way, killing cats is now a bannable offense.

Spoiler:
Kidding.
[Image: 7ajmN5P.jpg]

Telegram: Oni_SL (Link)

Reply

RE: Simple challenge #7
Code:
echo "cat" > hax.sh && chmod +x hax.sh && ./hax.sh

Reply

RE: Simple challenge #8
(09-13-2013, 02:47 AM)w00t Wrote:
Code:
echo "cat" > hax.sh && chmod +x hax.sh && ./hax.sh

You aren't supposed to directly invoke cat by name, for an example of an acceptable use of it look at Oni's.

Reply

RE: Simple challenge #9
Yet the first monk used "cat".

When I've time I'll make a quick script to use head to do it.

Reply

RE: Simple challenge #10
(09-13-2013, 02:56 AM)w00t Wrote: Yet the first monk used "cat".

That's because it was in the original story :p. This is a challenge modified from an old Unix koan.

Reply







Users browsing this thread: 1 Guest(s)