[H-GEN] Scripting guide
Greg Black
gjb at gbch.net
Thu May 25 04:21:41 EDT 2006
On 2006-05-25, Jason Parker-Burlingham wrote:
> What you want is:
> awk '/([0-9]+\.)+[0-9]+/ {print $8,$13}' \
> /var/log/apache/error.log.1
>
> I'm not sure if + is a GNU extension to awk, but [0-9][0-9]* will do in its
> place.
I was going to leave this topic alone, but this historical
element got me in. I have nothing handy on my shelf prior to
1984, but I can assure you that basic regular expressions have
used the '+' since at least that far back. I'm pretty sure it
dates from the early 1970's, certainly before there was such a
thing as GNU.
Cheers, Greg
More information about the General
mailing list