[CentOS] Log File Reviewing
Paul Heinlein
heinlein at madboa.comMon Jan 5 19:10:46 UTC 2009
- Previous message: [CentOS] Log File Reviewing
- Next message: [CentOS] Log File Reviewing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, 5 Jan 2009, Joseph L. Casale wrote: > 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... The regex you want is "^[[:space:]]*word" -- Paul Heinlein <> heinlein at madboa.com <> http://www.madboa.com/
- Previous message: [CentOS] Log File Reviewing
- Next message: [CentOS] Log File Reviewing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list