[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Please tell me this is curable...



"Patrick Kirk" <patrick@kirks.net> writes:

> Can you recall the name of any of these Windows utilities?  Or has nayone
> done this in the past and have the awk script lying about?
> > The problem is the lf -> crlf switch.  Just reverse it.  There
> > will be posts saying this won't work but it will.  You'd think
> > it doesn't work because what about valid crlf pairs in the
> > original data.  But they get changed to crcrlf by the ascii

Ah, good point.  Assuming it's true:

  perl -ne 's/\r\n/\n/g; print;'  broken.tar > fixed.tar

should do the trick.

Cheers, Phil.


Reply to: