Skip to content

Instantly share code, notes, and snippets.

@ryancat
Created April 2, 2015 15:20
Show Gist options
  • Save ryancat/90679171d27eda64bbf2 to your computer and use it in GitHub Desktop.
Save ryancat/90679171d27eda64bbf2 to your computer and use it in GitHub Desktop.
How to change file name in multiple folders
http://unix.stackexchange.com/questions/102647/how-to-rename-multiple-files-in-single-command-or-script-in-unix
for file in aro_tty-mIF-*_opt
do
mv -i "${file}" "${file/-mIF-/-mImpFRA-}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment