2006-09-04 16:29:41 |
Garrison Hoffman |
description |
Binary package hint: findutils
find /usr/bin -regex '[/A-Z]+' prints everything in /usr/bin instead of just files with upper case characters. In other words it functions exactly like -iregex. |
Binary package hint: findutils
find /usr/bin -regex '[/A-Z]+' prints everything in /usr/bin instead of just files with all upper case characters (none); in other words, it functions exactly like -iregex.
find /usr/bin -regex '[/ABCDEFGHIJKLMNOPQRSTUVWXYZ]+' works as expected.
A better workaround is to use a different -regextype with posix character classes, e.g. find /usr/bin -regextype posix-egrep -regex '[/[:UPPER:]]+' |
|