[CS-FSLUG] An easy way to remove blank lines?

Jukka jukka.ylonen at gmail.com
Sat Sep 10 14:06:49 CDT 2005


2005/9/10, Ed Hurst <ehurst at asisaid.com>:
> Jukka wrote:
> 
> > Ed's tip was to search two newlines and replace them with a single
> > newline with editors serch/replace-function. I tried it with Kate and
> > KWrite, but even they understand regular expressions, they did not
> > remove newlines. For some reason they could not find even a single hit
> > ??
> 
> Is the file in Unix format? If not, the newline code will be a
> combination of newline and carriage-return. If it comes from a Mac, it
> will be only a carriage-return.
> 
> --
> Ed Hurst

Hi Ed!

I know it doesn't come form mac (I dual boot only between win98 and
linux). I am not sure how to find out it is in unix-format.. I tried
the combination of newline and carriage-return (in both Kate and
KWrite), but without success.

-Jukka




More information about the Christiansource mailing list