[CentOS] Log File Reviewing

Joseph L. Casale JCasale at activenetwerx.com
Mon Jan 5 19:56:19 UTC 2009

>The regex you want is "^[[:space:]]*word"

Wow, thanks everyone for the help! How does one modify this to also knock out
lines that *must* have whitespace followed by a number [0-9]? I can do it using
"^[[:space:]]*[0-9]" but it also takes out lines w/o whitespace that begin with

I have to buy a book on RegEx's and Sed :)

Thanks all!

More information about the CentOS mailing list