- Replace text in one file:
sed 's/regular_expression_or_string_replace_from/string_replace_to/g' source.sql > target.sql
- find all files in current folder and replace text in each:
ls | xargs -I@ sed -i 's/regular_expression_or_string_replace_from/string_replace_to/g' @
- find recurcive from current folder all files by mask and replace:
find '.' | xargs -I@ sed -i 's/regular_expression_or_string_replace_from/string_replace_to/g' @