Batch renaming files using find and rename utilities

Batch renaming files using find and rename utilities

Here is the command to search and rename files using find and rename utitlity

find . -name '*tx_pdcv*' -exec rename -v 's/pdcv/pdext/' {} \;

Here, all files containing tx_pdcv is searched. and rename command is executed.

rename command renames the file using the regex pattern.

Replace tx_pdcv and 's/pdcv/pdext/' with your own string