![]() |
|
|
|
|
|||||||
| 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 |
| to get the timestamp of files from the files and folders in Unix | kishan | HP-UX | 2 | 04-09-2008 05:20 AM |
| Looking for Large Files and Folders | bbbngowc | Shell Programming and Scripting | 8 | 04-02-2008 10:09 AM |
| list only files or folders | jagnikam | Shell Programming and Scripting | 6 | 01-18-2008 06:59 AM |
| delete all folders/files and keep only the last 10 in a folder | melanie_pfefer | Shell Programming and Scripting | 3 | 11-17-2006 11:33 AM |
| How to Differentiate Between Files and Folders? | dgower2 | UNIX for Dummies Questions & Answers | 6 | 04-28-2006 09:10 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
removing old files except configuration files and folders
Dear all,
I want to remove files older than 2 months in the /home/member directory. But except the configuration files (like .bash_profile .config/ .openoffice/ .local/ .kde/ etc..) I have tried with the command find . -mtime +60 -wholename './.*' -prune -o -print -exec mv {} \; but it deletes newer files also. thanks |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
moves all files modified greater than 60 days ago, that do not begin with a period, to /backup. |
|||
| Google The UNIX and Linux Forums |