![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| find the length of file names in a directory? | koti_rama | Shell Programming and Scripting | 5 | 06-04-2008 11:19 AM |
| Help With Double Sustitution | Mohammed | Shell Programming and Scripting | 1 | 08-13-2007 03:53 AM |
| how to find capital letter names in a file without finding words at start of sentence | kev269 | Shell Programming and Scripting | 1 | 04-10-2006 10:35 PM |
| find computer names from IP addresses? | sladuuch | IP Networking | 1 | 10-07-2005 08:29 PM |
| find command not giving file names accord. to timestamps | thanuman | UNIX for Dummies Questions & Answers | 8 | 09-07-2004 10:04 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Find File names with sustitution
Hi All,
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. I would appreciate your help. Regards |
|
||||
|
Quote:
find /mydir/files -name "[po]erp4556?" |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|