Welcome my personal blog


This is my personal blog. Nothing special. In this blog I just want to share my experience, my mind, my interest and anything else.

I hope all of you will enjoy here leave some comments and do the same with me. We share our interest and make a nice relationship in this whole world. sorry if what I told you sounds so weird .Thats all

Tampilkan postingan dengan label Using. Tampilkan semua postingan
Tampilkan postingan dengan label Using. Tampilkan semua postingan

Rabu, 20 April 2011

Two Classic Games Developed Using Sed

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.


View the original article here

Twitter Delicious Facebook Digg Stumbleupon Favorites More