Created
February 2, 2011 21:19
-
-
Save paul-english/808461 to your computer and use it in GitHub Desktop.
Kills carriage returns for all PHP files in current directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f in `find . -type f -name '*.php' -print`; do mv $f ${f}~ && tr -d "\r" < ${f}~ >$f; rm ${f}~; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
recursively search for php files in a directory