Re: Log File Reviewing

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



> [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

Attachment: signature.asc
Description: PGP signature

_______________________________________________
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