Last active
June 10, 2020 09:50
-
-
Save hidakatsuya/e191d43ca24f98738d99cc58fb60a36c to your computer and use it in GitHub Desktop.
One-liner for bulk file renaming
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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