See
find
files based on file extension-print0
to terminate strings with null strings, instead of newline charactersxargs -0
xargs
and sed
to replace with a regex string-0
to look though lists separated by null strings-i ""
to ignore these null stringsfind . -name '*.txt' -print0 | xargs -0 sed -i "" "s/form/forms/g"
find . -name '*.md' -print0 | xargs -0 sed -i "" "s/::/:/g"