![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to find files older than 2 hours | pt14 | AIX | 3 | 03-05-2008 12:31 PM |
| how to find files older than 4hours in HP-UX | caprikar | UNIX for Advanced & Expert Users | 3 | 11-27-2007 05:23 PM |
| find files older than a given file | Shivdatta | Shell Programming and Scripting | 5 | 07-24-2006 07:25 AM |
| only find files older than x minutes old | dsimpg1 | Shell Programming and Scripting | 1 | 05-18-2006 11:48 PM |
| Find files older than 20 days & not use find | halo98 | Shell Programming and Scripting | 2 | 05-18-2006 02:19 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Sorry this is not much help. I always thought you could do something like:
find . \(-name '*.txt' -o -name '*.TXT'\) -print But I've just tried it on my HP-UX and it gives: find: bad option -o man find suggests -o is valid, though expression -o expression Logical OR operator. True if either or both of the expressions are true. Good luck in finding your answer. |
|
||||
|
Seen my error! you can use this form of construct for your or clause if you wish. Have tested on HP-UX and it throws up my .txt and .TXT files
find . \( -name \*.txt -o -name \*.TXT \) -print ./env.txt ./dir.txt ./shella.txt ./taila.txt ./tailb.TXT ./number.txt ./finished.txt ./dir2.txt ./shellb.txt ./cutshellb.txt ./tailb.txt ./numberb.txt ./result_c.txt Regards |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|