Bash: search and replace operation in directory
To perform a Search and Replace operation in current directory, you can use:
grep -rl "OLD_STRING" . | xargs sed -i 's/OLD_STRING/NEW_STRING/g'
NB!!! It’s potentially harmful operation as no confirmation will be asked. It’s highly recommended to have a backup copy of current directory in case if something goes wrong.