bug-gnu-utils
[Top][All Lists]
Advanced

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

patterns


From: Ken Senior
Subject: patterns
Date: Mon, 15 Jul 2002 16:00:03 -0400

Given a file with say a mixture of upper case and lower case text, I found that

cat file.txt | awk '/^[a-z]/ {print $0}'

incorrectly returns not only those entries beginning with a lower case letter, but also upper case ones as well.

Red Hat Linux 7.3 with 2.4.18 kernel
gawk-3.1.0-4

This problem was not the case on my older Red Hat 7.0 running gawk-3.0.6-1



Ken Senior

    _  __   ___    __
   / |/ /  / _ \  / /   Ken Senior                              (202)767-2043
  Naval Research Lab_   Systems Analysis Section     http://goby.nrl.navy.mil
/_/|_/  /_/|_| /____/   Space Applications Branch     address@hidden

 Code 8154 . Naval Research Lab . 4555 Overlook AV SW . Washington, DC  20375





reply via email to

[Prev in Thread] Current Thread [Next in Thread]