file.txt contains:
white
green
blue
foo
red
black
bar
yellow
Hope this helps!!! Read more ...
sed '/foo/,/bar/{d;}' file.txt
Output:white
green
blue
red
black
yellow
my views
file.txt contains:
white
green
blue
foo
red
black
bar
yellow
Hope this helps!!! Read more ...
sed '/foo/,/bar/{d;}' file.txt
Output:white
green
blue
red
black
yellow