file.txt contains:
white
green
blue
foo
red
black
bar
yellow
Hope this helps!!!
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!!!
sed '/foo/,/bar/{d;}' file.txt
Output:white
green
blue
red
black
yellow
No comments:
Post a Comment