you bewdy mate

On Tue, 13 Jul 2004 13:51:04 +1200
Carl Cerecke <[EMAIL PROTECTED]> wrote:

> Carl Cerecke wrote:
> > 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"))
> 
> Ooops. last line should have a print:
> 
> print string.join(sys.stdin.read().split("\r\n"))
> 
> Cheers,
> Carl.

-- 
Nick Rout <[EMAIL PROTECTED]>

Reply via email to