I am writing a big script and in part of it I need to remove 7 specific lines from a file, and I need to do this making sure that it will only delete these lines if all the lines exist in sequence. Here are the lines:
#
# NetBackup services
#
bprd blah blah
bpjava_msvc blah blah
bpcd blah blah
vopied blah blah
I want to do this using sed, and I am fairly sure it is possible but cannot figure out how to do it.
#
# NetBackup services
#
bprd blah blah
bpjava_msvc blah blah
bpcd blah blah
vopied blah blah
I want to do this using sed, and I am fairly sure it is possible but cannot figure out how to do it.