Re: Attacking this wrong? Syslog sort & extract question

2002-03-17 Thread swansong
My apologies for the 3 posts, netscape kept crashing so my last one from IE is the newest code... my dilemna isn't that it starts at the beginning of the line, the regex, as it doesn,'t. rather, how do I say open file, read file, for every occurrence of , print that line + the next 20 lines imm

Attacking this wrong? Syslog sort & extract question

2002-03-17 Thread swansong
I'm fairly certain I'm attacking this incorrectly, so any advice is greatly appreciated... Task: I want to sort through my Solaris syslog (/var/adm/messages) looking for any system reboots which always start with the string SunOS and, if found, return that line and the next 20 lines, at least fo