From: lbedford at domain wbtsystems.com
Date: Wed 24 May 2000 - 11:30:25 IST
On Wed, May 24, 2000 at 11:25:27AM +0100, John P. Looney (Kate) wrote:
> 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'
did you try:
cat file | sed -e 's/\r\n/\n'
?
Solaris also has dos2unix, which is handy :)
L.
-- Liam Bedford | Obscure, la force est noire System Administrator | Comme le chateau où flotte l'etendard, WBT Systems, Block 2, | notre drapeau Sois sûr, que sous les Harcourt Centre, Harcourt St. | feux, la verite est masquee 01-4170100 | Viens, bascule de notre côte, obscur
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:15 GMT