PureDevOps Community

Linux rename multiple files using find command

I want to find all the files having the name restaurant and rename it with store, below is the command worked for me

find . -type f -name 'restaurant*' -exec bash -c ' mv $0 ${0/restaurant/store}' {} \;

this is just one way to achieve the result. There are other ways using sed or in for loop etc.