Add new comment

sed

sed '23!d' filename Output line 23 of filename
sed '23,42!d' filename Output lines 23 to 42 of filename
sed -n '/foo/,/bar/p' filename Output all lines between the first line that matches foo and the last line that matches bar.
sed -n '/foo/,/bar/p' filename Output all lines that are not in between the lines which contain "foo" and "bar"

Technology: