![]() |
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 |
| to get the timestamp of files from the files and folders in Unix | kishan | HP-UX | 2 | 04-09-2008 08:20 AM |
| Looking for Large Files and Folders | bbbngowc | Shell Programming and Scripting | 8 | 04-02-2008 01:09 PM |
| list only files or folders | jagnikam | Shell Programming and Scripting | 6 | 01-18-2008 10: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 03:33 PM |
| How to Differentiate Between Files and Folders? | dgower2 | UNIX for Dummies Questions & Answers | 6 | 04-28-2006 12:10 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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 |
|
||||
|
Quote:
moves all files modified greater than 60 days ago, that do not begin with a period, to /backup. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|