Iam trying to find two kinds of files while ignoring rest of the files in a directory
The files are like below
Files to be found
--------------------
perp45560
oerp4556
Files to be ignored
----------------------
oerp4556123450
oerp4556123470
I was trying the following in SunOS 5.10
find /mydir/files -name "[po]erp4556[?]" it is NOT working
if i use
find /mydir/files -name "[po]erp4556*"
it lists the files to be ignored also
if i use
find /mydir/files -name "[po]erp4556[0]"
it lists only "p" kind of files and ignores "o" kind.
the problem is simple while "p" files have a "0" [Read as zero] at the end, "o" files dont have anything. How to write a find command to find both simultaeneously while it should ignore other longer "p" or "o" files.