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