Nick Rout wrote:

cat dbcontents.txt |tr -d "\015\012" >dbcontents2.txt also seems to get
rid of every combination as well as the solo \012's, which is NOT what I
want.

python to the rescue...

will read from stdin, and write to stdout.
Don't use on supermassive files.

#!/usr/bin/env python
import sys,string
string.join(sys.stdin.read().split("\r\n"))

Cheers,
Carl.

Reply via email to