Regex in find command
Johnny Rosenberg
gurus.knugum at gmail.com
Tue Aug 4 13:05:46 UTC 2015
I tried all the different regextypes mentioned in the man pages, but no
success:
emacs (default)
posix-basic
posix-awk
posix-egrep
posix-extended
Neither of them understod this:
find $Path … -some_options -type d -regex ".*[0-9]{4,5}"
This worked well with several regex types:
find $Path … -some_options -type d -regex ".*[0-9]{4}"
And of course, this worked well in all cases:
find $Path … -some_options -type d -regex ".*[0-9]+"
Is the {x,y} syntax not supported in find?
Kind regards
Johnny Rosenberg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20150804/a6e186fc/attachment.html>
More information about the ubuntu-users
mailing list