Rename files and directories recursively under ubuntu /bash
问题 I want to rename all files and directories that contain the word "special" to "regular". It should maintain case sensitivity so "Special" won't become "regular". How can i do this in bash recursively? 回答1: Try doing this (require bash --version >= 4): shopt -s globstar rename -n 's/special/regular/' ** Remove the -n switch when your tests are OK There are other tools with the same name which may or may not be able to do this, so be careful. If you run the following command ( GNU ) $ file "$