Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/prog/ challenge 2009: tskbot

Name: Anonymous 2022-04-14 19:31

Create a program which accepts a string on stdin, and outputs to stdout either the string ``tsk'', or an empty string. The formar case happens when the input string contains the substring ``nigger'' (case-insensitive). The latter happens in other cases.

Shortest program wins. You have 7*24 hours from the timestamp of this poast. Good luck!

Name: Anonymous 2022-04-15 20:44

Would specifying flags for the program be cheating? If you do sed -n, you can do
s/nigger/tsk/ip
otherwise I need to add two characters more
s/nigger/tsk/ip;d
This requires GNU sed.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List