How do i find and replace a string on command line in multiple files on unix?
with recent bash shell, and assuming you do not need to traverse directories
for file in *.txt do while read -r line do echo ${line//find/replace} > temp done <"file" mv temp "$file" done