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.