From: William James Date: 2005-10-13T06:36:53+09:00 Subject: Re: Removing blank lines William James wrote: > basi wrote: > > Hello, > > How does one delete blank lines from a text file? (I did try a number > > of things, but, I can't get any to work.) > > Thanks, > > basi > > awk 'NF' infile >outfile Here's another. Remove blank lines (lines that are empty or contain only whitespace) from beginning of file. After first non-blank line, keep all remaining lines. awk 'NF,0' infile >outfile