![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Post Here to Contact Site Administrators and Moderators Make Suggestions About Forums, Features, or Content here. Discuss Rules and Guidelines. Get Forum Support Here. (Registered Users Only) |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using camcorder tapes to back up files | iBot | UNIX and Linux RSS News | 0 | 12-20-2007 08:20 AM |
| Back up of multiple data files | dsravan | Shell Programming and Scripting | 1 | 02-07-2007 04:35 PM |
| Can I back up all the files I work with each day using tar? | jo calamine | Filesystems, Disks and Memory | 2 | 10-01-2006 02:35 PM |
| modifying C file and linking back to project files | bruins2005 | UNIX for Dummies Questions & Answers | 1 | 06-22-2006 08:08 PM |
| Bring back removed files | Reza Nazarian | UNIX for Dummies Questions & Answers | 2 | 07-23-2001 07:52 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi Experts,
I want to delete the log files which is created 15 days back. 1st I want to view the files and later I want to delete viewed files I have tried with following command but its not working. find . -name '*.log' -mtime +15 -exec ls -ltr {} \; This is showing the list which shows not only 15 days back files , its showing other than that also. What mistake I have done. Can anybody help me. Thanks & Regards, Vidya |
| Forum Sponsor | ||
|
|
|
|||
|
The "-mtime +15" expresssion shows files modified 15 days ago OR MORE. Remove the sign from the number for exactly 15 days ago as in:
find . -name '*.log' -mtime 15 -exec ls -ltr {} \; There might also be some confusion with the atime, mtime, and ctime if the above command doesn't filter out your unwanted files. Best of luck. |
|
|||
|
transfer of Unix to another hard drive Ver. 3.2
I running out of space on my hard drive, I need to transfer the os to another HD or delete some files too try to free space. what commands can I use to do this and to delete some files.
Andrew |
|||
| Google The UNIX and Linux Forums |