This works: ls -ld /tmp/ | awk '"^.{4}r" {print "TEST"}'
These also work: ls -ld /tmp/ | awk --posix '/^.{4}r/ { print "TEST"}' ls -ld /tmp/ | awk --re-interval '/^.{4}r/ { print "TEST"}' The online awk manual states in section "2.3 Regular Expression Operators" (http://www.gnu.org/software/gawk/manual/gawk.html#Regexp): "... by default gawk does not match interval expressions in regexps. If either --posix or --re-interval are specified (see Options), then interval expressions are allowed in regexps. ..." Thus this is *not* a bug. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/502027 Title: gawk fails to parse regular expressions with an interval -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs