timr at probo.com
Mon Jun 10 01:56:22 EDT 2002
Michael Kelly <mkelly2002 at adelphia.net> wrote:
>Michael Kelly wrote:
>> If you're on a unix flavor this works pretty well
>> tr -d '\015' <infile >outfile
>Whoops! Should just be
>tr -d '015' <infile >outfile
>No need for the backslash.
There is if you want to remove carriage returns! Without the backslash,
your command removes all occurrances of the digits '0', '1', and '5' from
the file. Not entirely useless, but certainly much less useful than your
In other words, you were right the first time...
- Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-list