Howto: Linux command line utilities for removing blank lines from text files last updated August 10, 2008 in Categories BASH Shell, Linux, UNIXQ. I want to change the formatting of a file. I just wanted to remove all blank lines from text file. How do I achieve this task w/o spending much time?