Created
June 18, 2013 16:40
-
-
Save dylanhthomas/5807032 to your computer and use it in GitHub Desktop.
You can adapt this for any filename find/replace, but I find it most useful for changing a directory of .html files to .php files.
This file contains hidden or 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 file in *.html ; do mv $file `echo $file | sed 's/\(.*\.\)html/\1php/'` ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment