Skip to content

Instantly share code, notes, and snippets.

@hidakatsuya
Last active June 10, 2020 09:50
Show Gist options
  • Save hidakatsuya/e191d43ca24f98738d99cc58fb60a36c to your computer and use it in GitHub Desktop.
Save hidakatsuya/e191d43ca24f98738d99cc58fb60a36c to your computer and use it in GitHub Desktop.
One-liner for bulk file renaming
for a in path/to/**/prefix_*.rb ; do dir=`dirname $a`; mv $a "${dir}/new_filename.rb"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment