[Gllug] sed script for removing lone new line characters
David Damerell
damerell at chiark.greenend.org.uk
Mon Mar 6 12:09:27 UTC 2006
On Friday, 3 Mar 2006, Dan Stevens (IAmAI) wrote:
>Perhaps I give my own example of what I have now, and how I would like
>it after processing.
>$ cat before
>I would like this line
>and this line, on one line.
>
>But I would like a blank line between this paragraph and the previous.
'taint sed, but;
< input-file perl -we '@foo=<>; $foo=join ("", at foo),$foo=~s/([^\n])\n([^\n])/$1 $2/g;print $foo;'
I eagerly await the email pointing out what a silly way of doing this
that is.
--
David Damerell <damerell at chiark.greenend.org.uk> Kill the tomato!
Today is Olethros, March - a weekend.
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list