I have a file \"changesDictionary.txt\" containing (a variable number of) pairs of key-value strings.
e.g.
\"textToSearchFor\" = \"theReplacementText\"
#!/bin/bash f="changesDictionary.tx" find /path -type f -name "*.txt" | while read FILE do awk 'BEGIN{ FS="=" } FNR==NR{ s[$1]=$2; next } { for(i in s){ if( $0 ~ i ){ gsub(i,s[i]) } } print $0 }' $f $FILE > temp mv temp $FILE done