[ILUG] silly shell thing

From: John P. Looney (Kate) (jplooney-ilug at domain online.ie)
Date: Wed 24 May 2000 - 11:25:28 IST


 I've a file that for some reason a windows editor has put in double
newlines everywhere.

 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'

 But neither did the trick...

Kate

-- 
"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