1

Sed Comparing Parenthesized Values In Previous Line To Current Line

view story
linux-howto

http://www.unix.com – I am trying to delete lines in archived Apache httpd logs Each line has the pattern: <ip-address> - - <date-time> <document-request-URL> <http-response> <size-of-req'd-doc> <referring-document-URL> This pattern is shown in the example of 6 lines from the log in the code box below. These 6 lines are in a row, and all start with same IP address. These are actually the first 6 lines of about 20-25 lines, in which a document was served with multiple gif images. My purpose is to delete lines under the following conditions: First, determine whether a line in (HowTos)