[ILUG] silly shell thing

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


 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




More information about the ILUG mailing list