Find & Replace string in multiple files & folders using perl

find . -type f -name "*.sql" -print|xargs perl -i -pe 's/pattern/replaced/g'

this is simple logic to find and replace in multiple files & folders
Hope this helps.

Thanks
Zaheer