Monthly Archives: March 2011

Delete Lines Beginning With A Character In Vim

Lately I’ve been using Vim quite a bit to edit text files for my work. One of the things I wanted to do recently was to remove all of the comments from a text file in order to reduce its size prior to uploading it to the server over my relatively slow internet connection. In this post I’ll show how to remove lines that begin with a given character or character string using vi/Vim/gVimContinue reading

How To Hide Secret Messages In Images With Linux

In today’s post I’m going to show how to embed a text message into an image file. This type of messaging is known as steganography. Steganography is the practice of hiding secrets in such a way that only the intended message recipient would know to look for your hidden message.

In this basic form of secret messaging we’ll be adding text onto the end of a file. I’m going to use the following image of Tux for my example.  Continue reading