Skip to content

Category Archives: Linux/Unix

No dos2unix, no perl

I was stuck on a machine with a lot of scripts that had the dreaded ^M at the end of each line. These were Windows files in a huge zip file, and it was a pain to use the FTP to move that zip file over again. Dos2unix wasn’t installed, nor was perl. One way [...]

Using while loops with read

If you want to loop over values in a file, the read command in Linux/Unix is very useful. It reads a line from a file, and assigns as many variables as you specify as parameters to the values in that line. Combined with a while loop, you can read the values and process them. Here’s [...]

Showing special characters in filename

Sometimes, especially if your terminal is not set correctly, you accidentally create files that have backspace in their name. To see the full name, you can use the -b option to ls : > ls -b gjdhjd\177\177.txt This file has 2 backspace characters in the name, they are shown as \177. That will give you [...]

Changing the default font for Eclipse

Eclipse is a great development environment for Java on Linux, however there might be some issues with the fonts. The Preferences window only allows you to change certain fonts, with no way to change the menu font and the font in the outline or package explorer view. If your display has a high resolution, like [...]