I have a set of files where were FTP'd without using BINARY. The results might be trash, but I'd like to try recovery by locating all 0d0a pairs and replace those with just 0a.
I've tried this command:
tr '\015\012' '\012' <infile >outfile
That replaces 0d0a with 0a0a.
I tried:
tr -d '\015\012' '\012' <infile >outfile
That removes ALL instances of 0d AND 0a.
The "dtox" or "dos2unix" commands won't fly well on binary files.
Any help is appreaciated, as always!
"Proof that there is intelligent life in Oregon. Well, Life anyway.
I've tried this command:
tr '\015\012' '\012' <infile >outfile
That replaces 0d0a with 0a0a.
I tried:
tr -d '\015\012' '\012' <infile >outfile
That removes ALL instances of 0d AND 0a.
The "dtox" or "dos2unix" commands won't fly well on binary files.
Any help is appreaciated, as always!
"Proof that there is intelligent life in Oregon. Well, Life anyway.