![]() |
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 display only hidden files | useless79 | Shell Programming and Scripting | 7 | 11-12-2008 05:50 AM |
| find excluding the hidden files | arunkumar_mca | UNIX for Advanced & Expert Users | 3 | 01-27-2008 11:45 PM |
| Transferring hidden files with scp | matrixmadhan | UNIX for Dummies Questions & Answers | 13 | 01-16-2007 04:00 PM |
| how to copy hidden files from one folder to another | rajan_ka1 | UNIX for Dummies Questions & Answers | 1 | 11-07-2005 09:04 AM |
| Finding hidden files under mounted filesystems | keelba | UNIX for Dummies Questions & Answers | 3 | 04-13-2005 03:59 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Finding Hidden files and protecting the folder containing hidden files from deletion
Hi. I have a script which is deleting files with a particular extension and older than 45 days.The code is:
find <path> -name "<filename_pattern>" -mtime +45 -exec rm {} \; But the problem is that some important files are also getting deleted.To prevent this I have decide to make a dummy hidden file in such folders which are not to be considered when this script is run. Is this the right way to achieve the desired result??? If yes, then how can I do this?? If not, then what should be the ideal way?? Please.I need the solution urgently.. Thanx. Last edited by pochaw; 10-03-2006 at 06:38 AM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|