nix, shell, perl, php, mysql and mac os x tips and tricks

Wednesday, September 21, 2005

Strip crtl-M characters from files on the command line (recurses)

find . -name '*.html' | xargs perl -pi -e 's/\r//g;'