bash - Using sed to get the content of a file that is not between two lines -
i have file like:
name 1 name 2 name 3 #start# no name 1 no name 2 #end# name 4
and i'm looking opposite of sed -n '/#start#/,/#end#/p'
result:
name 1 name 2 name 3 name 4
what's secret?
sed '/#start#/,/#end#/d'
delete lines within range specified.
Comments
Post a Comment