![]() |
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 |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| deleting files with dates 3 months ago | godalle | UNIX for Dummies Questions & Answers | 3 | 11-08-2005 03:03 AM |
| Last modification times of files less than 6 months old | Abhishek Ghose | UNIX for Dummies Questions & Answers | 1 | 10-19-2005 07:37 AM |
| Find files older than 5 days and remove tem after listing | ypatel6871 | UNIX for Dummies Questions & Answers | 1 | 09-05-2005 11:00 AM |
| find, remove, and ftp...... | peter.herlihy | UNIX for Dummies Questions & Answers | 1 | 06-25-2002 06:51 AM |
| Listing files older than 2 months | pbekal | Shell Programming and Scripting | 3 | 01-17-2002 02:12 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Find 3 months old log files and remove
HI
I HAVE LOG FILES IN THIS FORMAT XXX.log.20080509215745 XXX.log.20080209205745 XXX.log.20080301785745 XXX.log.20080109155745 XXX.log.20080409115745 XXX.log.20080309105745 I NEED TO FIND THE FILES FROM 3 MONTHS OLD AND REMOVE PLEASE HELP THANKS, |
|
||||
|
Thanks for the reply
I tried the command find . -name *.log.* -mtime +90 -exec ls -tl {} \; getting error Arg list too long bash-2.03$ find . -name *.log.* -mtime +90 -exec ls -tl {} \; bash: /usr/bin/find: Arg list too long Thanks, |
|
||||
|
try this?
$ find . -name *.log -mtime +90 -exec ls {}\; |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| mtime |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|