Skip to content

Instantly share code, notes, and snippets.

@oeon
Created July 12, 2012 20:43
Show Gist options
  • Save oeon/3100844 to your computer and use it in GitHub Desktop.
Save oeon/3100844 to your computer and use it in GitHub Desktop.
To move all files with '_11_' in their filename to child-folder 'reproj11to10' and replace '_11_' with '_10_'
for f in *_11_*; do mv "$f" ./reproj11to10/"${f/_11_/_10_}"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment