Skip to content

Instantly share code, notes, and snippets.

@joshmcarthur
Created November 26, 2013 21:44
Show Gist options
  • Save joshmcarthur/7666812 to your computer and use it in GitHub Desktop.
Save joshmcarthur/7666812 to your computer and use it in GitHub Desktop.
Move all files matching a pattern from a series of subfolders
for folder in folder1 folder2 folder3; do mv "$folder/_file_old.html.erb" "$folder/_file_new.html.erb"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment