Hi, maybe one of you can sched some light on this. I want to match a sequence of two digits with awk, but the following doesn't work
gawk '/([[:digit:]]){2}/' test_file
while it works as expected when using egrep, like
egrep ([[:digit:]]){2} test_file
Leaving out the interval also works, like in
gawk '/([[:digit:][:digit:]])/' test_file
but that would of course get worse when it comes to more than two digits. It
also doesn't make a difference if I use [0-9] instead of [[:digit:]].
According to awk's man page its regular expressions are the same than those
used by egrep. What do I miss?
Thanks...
Dirk
--
Dirk Heinrichs | Tel: +49 (0)162 234 3408
Configuration Manager | Fax: +49 (0)211 47068 111
Capgemini Deutschland | Mail: [EMAIL PROTECTED]
Wanheimerstraße 68 | Web: http://www.capgemini.com
D-40468 Düsseldorf | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net
signature.asc
Description: This is a digitally signed message part.

