Removing ^M
Tim Roberts
timr at probo.com
Mon Jun 10 01:56:22 EDT 2002
More information about the Python-list mailing list
Mon Jun 10 01:56:22 EDT 2002
- Previous message (by thread): Removing ^M
- Next message (by thread): Q: scope of module functions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 FIRST example. In other words, you were right the first time... -- - Tim Roberts, timr at probo.com Providenza & Boekelheide, Inc.
- Previous message (by thread): Removing ^M
- Next message (by thread): Q: scope of module functions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list