1

Printing a block of lines from a file, if that block does not contain two patterns using sed

view story
linux-howto

http://www.unix.com – I want to process a file block by block using sed, and if that block does not contain two patterns, then that complete block has to be printed. See below for the example data. ................................server 1............................... running process 1 running process 2 running process 3 date : 12/12/2012 ............................................................................ ................................server 2............................... running process 1 stopped pro (HowTos)