I want to do a search for files with a name of DExxxxxxx.ext and FGxxxxxx.ext using the find command.
So far I have tried:
find /search/path -name "@(DE|FG)*.ext"
this doesn't return much, if I leave the quotes out, the korn shell will do the pattern matching instead of the find command. This works if I don't have a lot of files, otherwise I get "arg list too long" message.
Am I missing something? Is the find command capable to do pattern matching in AIX, korn shell?
Thanks in advance for your replies.
So far I have tried:
find /search/path -name "@(DE|FG)*.ext"
this doesn't return much, if I leave the quotes out, the korn shell will do the pattern matching instead of the find command. This works if I don't have a lot of files, otherwise I get "arg list too long" message.
Am I missing something? Is the find command capable to do pattern matching in AIX, korn shell?
Thanks in advance for your replies.