UNIX, OpenVMS and Windows System Administration, Digital Forensics, High Performance Computing, Clustering and Distributed Systems.
I've seen irc clients written in sed and I've seen a lot of sed magic in my time, but this is just ridiculous...A Tetris game written in sed.http://uuner.doslash.org/forfun/sedtris.sed
Not as ridiculous as GPL cola (OpenCola).
and how do you play this thing?$ sed sedtris.sed sed: -e expression #1, char 11: unterminated `s' command
Works fine for me :-). You're doing it wrong.% chmod + x sedtris.sed% ./sedtris.sedEnterEnter..And see the instructions on screen :-)
You can try to use this shell script to stop pressing Enter and enjoy the game.
:[$ ./sedtris.shsed: command garbled: s/[^~]*~$/&&&/what could be the problem....
That's a GNU sed script, it will not work with AIX sed or Solaris sed (UNIX sed), it needs gsed.On AIX for example:./sedtris.sedsed: 0602-404 Function s/[^~]*~$/&&&/ cannot be parsed.Replaced the first line with:#!/opt/freeware/bin/sed -nf(this is GNU sed)And it works.
Post a Comment