From: John P. Looney (Kate) (jplooney-ilug at domain online.ie)
Date: Wed 24 May 2000 - 12:34:29 IST
On Wed, May 24, 2000 at 01:08:24PM +0100, Niall O Broin mentioned:
> > Anyone got a good way of getting rid of them ? I tryed:
> > cat file | tr -s \\n
> > and
> > cat file | sed -e 's/\n\n/\n'
> I've just realised that my earlier answer could have been shorter and
> perlier - I'll be drummed out of Perl-mongers :-). This works nicely
> perl -lne 'print if length' screwed_up_file
Didn't seem to do anything.
What does it do ?
-- "The fool must be beaten with a stick, for an intelligent person the merest hint is sufficient" -- Zen Master Greg
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:15 GMT