Skip to content

Instantly share code, notes, and snippets.

@paul-english
Created February 2, 2011 21:19
Show Gist options
  • Save paul-english/808461 to your computer and use it in GitHub Desktop.
Save paul-english/808461 to your computer and use it in GitHub Desktop.
Kills carriage returns for all PHP files in current directory
for f in `find . -type f -name '*.php' -print`; do mv $f ${f}~ && tr -d "\r" < ${f}~ >$f; rm ${f}~; done;
@paul-english
Copy link
Author

recursively search for php files in a directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment