Find and replace a file in-place
sed -i 's/ross/russ/' myFile.txt
sed -i 's|ross|russ|' myFile.txt
Find lines containing ‘x’ in a file and delete them
sed -i '/myString/d' /home/ross/myFile.txt
Return lines between the two specified. (The specified lines must exist)
sed -n '/Feb 23 13:55/,/Feb 23 14:00/p' /var/log/syslog