RE: Problem with the dos2unix command

2007-10-21 Thread Dave Korn
On 20 October 2007 02:39, Buchbinder, Barry (NIH/NIAID) wrote: > > For the record, shouldn't the following work? > > sed -i -e 's/\r$//' file1, file2, ... Yes, but needs the -b flag. cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info: http://cyg

RE: Problem with the dos2unix command

2007-10-21 Thread Buchbinder, Barry (NIH/NIAID) [E]
From: d.henman, Sent: Saturday, October 20, 2007 8:46 PM > Buchbinder, Barry (NIH/NIAID) [E] <[EMAIL PROTECTED]> wrote: > > From: Patrick Monnerat; Sent: Wednesday, October 17, 2007 7:00 AM > > > I'm trying to convert a \r\n line-ending file to unix style, but > > > this file has some lines with t

RE: Problem with the dos2unix command

2007-10-19 Thread Buchbinder, Barry (NIH/NIAID) [E]
From: Patrick Monnerat; Sent: Wednesday, October 17, 2007 7:00 AM > I'm trying to convert a \r\n line-ending file to unix style, but this > file has some lines with their last character being \r (i.e.: the > sequence of binary bytes is ...\r\r\n...) > > Using dos2unix to convert it strips both \r,

RE: Problem with the dos2unix command

2007-10-19 Thread Patrick Monnerat
Charles Wilson wrote: > If someone were to submit a patch to add an optional, "non-greedy" mode to dos2unix it would be thoughtfully considered... So here is it! It adds the following new options to conv, dos2unix and unix2dos: _ --full/--eol: in full mode (default), it behaves as ever. In e

RE: Problem with the dos2unix command

2007-10-18 Thread Dave Korn
On 18 October 2007 06:07, Charles Wilson wrote: > Patrick Monnerat wrote: >> I'm trying to convert a \r\n line-ending file to unix style, but >> this file has some lines with their last character being \r (i.e.: the >> sequence of binary bytes is ...\r\r\n...) >> >> Using dos2unix to convert

Re: Problem with the dos2unix command

2007-10-17 Thread Charles Wilson
Patrick Monnerat wrote: I'm trying to convert a \r\n line-ending file to unix style, but this file has some lines with their last character being \r (i.e.: the sequence of binary bytes is ...\r\r\n...) Using dos2unix to convert it strips both \r, resulting in a byte sequence ...\n... Thi

Problem with the dos2unix command

2007-10-17 Thread Patrick Monnerat
Hello list, I'm trying to convert a \r\n line-ending file to unix style, but this file has some lines with their last character being \r (i.e.: the sequence of binary bytes is ...\r\r\n...) Using dos2unix to convert it strips both \r, resulting in a byte sequence ...\n... This seems to me