How to search a file with grep for certain hexadecimal values.

The grep utility is very useful for searching for files and text snippets. It can also be used to search a file for certain values in hexadecimal. In the example below, I am searching for the text “JFIF” in hexadecimal in certain files. This will tell me that they are jpg image files. The hexadecimal … Read more

How to convert a jpg image to ASCII using the Linux command line.

The jp2a package for Ubuntu will convert a jpeg image into an ascii text representation. This is useful for creating useful ascii images to post on the Internet. Install it by typing: sudo apt-get install jp2a and then convert an image this way. ~$ jp2a myimage.jpg~$ jp2a myimage.jpg This will output ascii text to the … Read more