The rename command is a powerful tool for batch renaming files when you want to apply a specific rule to multiple file names. Its basic usage is as follows:
rename [options] 's/string_to_replace/replacement_string/' files...
$ rename .c++ .cpp *.c++ ←to rename all files in the current directory with the extension ".c++" to ".cpp" $ rename baidu yahoo * ←To replace occurrences of "baidu" with "yahoo" in all file names: |