Linux -Befehlszeilensuche und Ersetzen von Zeichenfolge
> grep -rl "old string" . | xargs sed -i 's/old string/new string/g'
Dizzy Dog
> grep -rl "old string" . | xargs sed -i 's/old string/new string/g'
#replace all string occurence
sed -i 's/old-text/new-text/g' input.txt
#replace all string occurence and create new file
sed -i 's/old-text/new-text/g' input.txt > newfile.txt
#see link
#https://www.cyberciti.biz/faq/how-to-use-sed-to-find-and-replace-text-in-files-in-linux-unix-shell/