replacing two EOL chars by one
Padraig at Linux.ie
Padraig at Linux.ie
Mon Dec 22 04:24:17 EST 2003
More information about the Python-list mailing list
Mon Dec 22 04:24:17 EST 2003
- Previous message (by thread): replacing two EOL chars by one
- Next message (by thread): replacing two EOL chars by one
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Xah Lee wrote: > i have a bunch of java files that has spaced-out formatting that i > want to get rid of. I want to replace two end of line characters by > one end of line characters. The files in question is unix, and i'm > also working under unix, so i did: > > perl -pi'*~' -e "s@\n\n@\n at g" *.java Of course you can do it in Perl. The handiest way I think is: tr -s '\n' Pádraig.
- Previous message (by thread): replacing two EOL chars by one
- Next message (by thread): replacing two EOL chars by one
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list