sed allows you to filter & transform text, it's kind of a search/replace function.
syntax:
sed -i 's/find/replace/' filename
-i
stands for 'inplace'
sed -i 's/find/replace/g' filename
- last
g
specifies that this substitution is global.
sed '/LINE_PATTERN/s/find/replace/' filename
sed '/LINE_PATTERN/d' filename
sed -e 's/find/replace/' -e 's/find2/replace2/' filename
The character follows 's' stands for the delimiter, you can change if your text contain this delimiter.
sed 's|find|replace|' filename