On Wed, May 24, 2000 at 11:32:19AM +0100, John P. Looney (Kate) wrote:
> On Wed, May 24, 2000 at 11:29:17AM +0100, lbedford at wbtsystems.com mentioned:
> > > 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'
>> I did, but 'od' says that the newlines are actually \n\n - not \r\n
Weird.. what editor produced them? the normal problem is \r\n and you end
up with vim -b giving you
blah ^M
line 2^M
I assume the file you have in vi looks like
line 1
line 2
line 3
?
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
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!