Created
August 2, 2012 14:55
-
-
Save myokoym/3237623 to your computer and use it in GitHub Desktop.
ファイルリネーム用ワンライナー
This file contains 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
ruby -r fileutils -e "Dir.glob('*').each_with_index {|fn, i| FileUtils.mv fn, fn.sub(/置換前/, \"置換後\") }" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment