![]() |
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 |
| 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 |
| Excluding directories with find | x96riley3 | UNIX for Dummies Questions & Answers | 3 | 04-08-2009 04:12 AM |
| Finding Hidden files and protecting the folder containing hidden files from deletion | pochaw | Shell Programming and Scripting | 4 | 12-22-2007 01:33 AM |
| search for files excluding binary files | user_prady | Shell Programming and Scripting | 2 | 09-05-2007 12:18 AM |
| Excluding files using tar cXzf | sampipe | UNIX for Dummies Questions & Answers | 11 | 07-28-2005 09:46 AM |
| Excluding Old Files on AWK !!! | alexalvarenga | Shell Programming and Scripting | 2 | 01-16-2002 10:25 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
find excluding the hidden files
Hi ,
I am trying to use the find command with delete in a directory . Even though i use a wil character search the find command is checking the hidden files which inturn results in error . Can i avoid look that into the hidden files ?? I am using HP unix . find /cv1/ -name "ite*" -mtime +14 -exec rm -f -r HIw can modify the above command so that i exclude the hedden files or directory when searching .. PLease let me know if is urgent Thanks, Arun |
|
||||
|
Quote:
Code:
find /cv1/ -name "ite*" -mtime +14 -exec rm -fr {} \;
|
|
||||
|
Hi
find /wsfer/cre/ -name "mod*" -mtime +14 -exec rm -f -r 2> /dev/null "{}" ";" This was the command i used the syntax was right .. I even though tried the regex you suggested it was not working . I am using HP UNIX. Even though i used /dev/null after this command when i tried $? the status i am geeting is 1 if the permision denied . Why it is happening . And how to exclude the hidden files and directory in the above command . Please help. Thanks Arun. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|