[CentOS] Log File Reviewing

Joseph L. Casale

JCasale at activenetwerx.com
Mon Jan 5 18:45:37 UTC 2009


I need to review a logfile with Sed and cut out all the lines that start with a certain word, problem
is this word begins after some amount of whitespace and unless I search for whitespace at the
beginning followed by "word" I may encounter "word" somewhere legitimately hence why
I don't just search for "word" only...

Anyone know how to make sed accomplish this?

Thanks!
jlc



More information about the CentOS mailing list