Command
sed
Explanation
sed is a stream editor used to perform basic text transformations on input streams.
Examples
Replace all occurrences
sed 's/old/new/g' file.txt
Print lines 5-10
sed -n '5,10p' file.txt
Edit file in place
sed -i 's/foo/bar/g' file.txt