sed allows you to filter & transform text, it's kind of a search/replace function.
syntax:
sed -i 's/find/replace/' filename-istands for 'inplace'
sed -i 's/find/replace/g' filename- last
gspecifies that this substitution is global.
sed '/LINE_PATTERN/s/find/replace/' filenamesed '/LINE_PATTERN/d' filenamesed -e 's/find/replace/' -e 's/find2/replace2/' filenameThe character follows 's' stands for the delimiter, you can change if your text contain this delimiter.
sed 's|find|replace|' filename# linux bash
find . -type f -exec sed -i 's/find/replace/g' {} +
find . -type f -name "*.cs" -exec sed -i 's/find/replace/g' {} +