Re: Log File Reviewing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxxx <> http://www.madboa.com/
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux