![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| find excluding the hidden files | arunkumar_mca | UNIX for Advanced & Expert Users | 3 | 01-27-2008 07:45 PM |
| how to display only hidden files | useless79 | Shell Programming and Scripting | 5 | 09-19-2007 11:39 PM |
| Transferring hidden files with scp | matrixmadhan | UNIX for Dummies Questions & Answers | 13 | 01-16-2007 12:00 PM |
| how to copy hidden files from one folder to another | rajan_ka1 | UNIX for Dummies Questions & Answers | 1 | 11-07-2005 05:04 AM |
| Finding hidden files under mounted filesystems | keelba | UNIX for Dummies Questions & Answers | 3 | 04-13-2005 11:59 AM |
|
|
Submit Tools | LinkBack | Thread Tools | 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 02:38 AM. |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
Can you show a sample of the <filename_pattern> and that of the important files. |