Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@wlangstroth
Created April 3, 2010 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wlangstroth/354765 to your computer and use it in GitHub Desktop.
Save wlangstroth/354765 to your computer and use it in GitHub Desktop.
# For those without rename
for i in *; do mv $i $i.mp3; done
# or
for f in *;do mv $f ${f/test/prod};done
# replace text in lots of files
perl -pi -e 's/wrong/right/g' *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment