[CentOS] Log File Reviewing

Mon Jan 5 20:14:02 UTC 2009
Spiro Harvey <spiro at knossos.net.nz>

> [0-9]? I can do it using "^[[:space:]]*[0-9]" but it also takes out
> lines w/o whitespace that begin with numbers?

to match one or more, use + instead of *.

* matches 0 or more, + matches 1 or more.

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

http://www.gnu.org/manual/gawk/gawk.pdf

(G)awk is pretty sh!t hot where I work; however we've extended it a
bit. :)


-- 
Spiro Harvey                  Knossos Networks Ltd
021-295-1923                    www.knossos.net.nz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20090106/fba2edd2/attachment-0004.sig>