Two Classic Games Developed Using Sed

April 11, 2011
Sed is a command line tool used for pattern recognition and substitution in one or more text files. Sed is also called a stream editor. It is a very powerful tool which when mastered can help you in near-magic modifications to your files - all with just a few tap of your fingers.

One of the frequent uses of Sed is in text substitution. For example, if you want to change all the occurrences of the word "train" with the word "car" in your file "myfile.txt", you can do it easily using sed as follows.

$ cat myfile.txt | sed 's/train/car/g' -

For a comprehensive tutorial on sed, check out the Introduction and Tutorial of sed by Bruce Barnett.

But teaching sed to netizens is not what this post is about. Rather, it is to present two all time classic games that have been developed entirely using Sed.

So without further ado, here are two classic games that you can download and play on your Linux machine - - Sed Tetris and SedSokoban.