The UNIX and Linux Forums
Forum Home
Linux and Unix Man Pages
Search Forums
Search Community Posts
Today's Posts
Quick Links
Man Pages
RedHat Commands
OpenSolaris Commands
Linux Commands
SunOS Commands
FreeBSD Commands
All UNIX Man Pages
All Linux Man Pages
Full Man Repository
Login or Register to Ask a Question and Join Our Community
Search Forums
Show Threads .
Show Posts
Tag Search
Advanced Search
Quick Links
Contact Us
Forum Rules
Today's Posts
FAQ
Pictures & Albums
All Albums
Miscellaneous
What is My IP
Whois
Mark Forums Read
Search Results
Showing results 1 to 8 of 8
Search took
0.00
seconds.
Search:
Posts Made By:
cvdev
Forum:
Solaris
05-30-2008
3
Remove logs by date
4,292
Posted By
cvdev
like xxxxx.log.20070509125745 ...
like
xxxxx.log.20070509125745
xxxxx.log.20070103113245
xxxxx.log.20070314105745
xxxxx.log.20070219215715
xxxxx.log.20070429162035
Forum:
Solaris
05-30-2008
3
Remove logs by date
4,292
Posted By
cvdev
Remove logs by date
Hi
I Need To Remove Logs Older Than April 1 St(4/1/2007) By Date
I Have A Script To Remove 3 Months Old Like Using 90 Days
Thanks
Forum:
Solaris
05-22-2008
13
Find 3 months old log files and remove
50,203
Posted By
cvdev
Thanks every one its working.
Thanks every one its working.
Forum:
Solaris
05-22-2008
13
Find 3 months old log files and remove
50,203
Posted By
cvdev
Tried both no result $ find . -name...
Tried both no result
$ find . -name \*.log.\* -mtime +90 -exec ls {} \;
$
$ find . -name "*.log.*" -mtime +90 -exec ls {} \;
$
Forum:
Solaris
05-22-2008
13
Find 3 months old log files and remove
50,203
Posted By
cvdev
Tried find . -name *.log -mtime +90 -exec ls {}\;...
Tried find . -name *.log -mtime +90 -exec ls {}\;
Getting bad option xxxx.log file
$ find . -name *.log -mtime +90 -exec ls {}\;
find: bad option xxxx.log
find: path-list predicate-list
Forum:
Solaris
05-22-2008
13
Find 3 months old log files and remove
50,203
Posted By
cvdev
Tried with out bash $ find . -name *.log.*...
Tried with out bash
$ find . -name *.log.* -mtime +90 -exec ls -tl {} \;
ksh: /usr/bin/find: arg list too long
getting the same error
Directory has different type of files
like
*.log...
Forum:
Solaris
05-22-2008
13
Find 3 months old log files and remove
50,203
Posted By
cvdev
Thanks for the reply I tried the command ...
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 {} \;...
Forum:
Solaris
05-22-2008
13
Find 3 months old log files and remove
50,203
Posted By
cvdev
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...
Showing results 1 to 8 of 8
Member Badges and Information Modal
×