Eric's Technology Blog
Monday, July 9, 2012
Ubuntu Linux - Removing files based on date
A little script to remove files based on date.
This command will remove anything older then 30 days:
find /data/server/log/ -mtime +30 -exec rm {} \;
This command will remove anything over 1 year:
find /data/server/log/ -mtime +360 -exec rm {} \;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Phoenix
I am resurrecting this tech blog for notes related to Azure Logic Apps with SAP.
Visual Studio 2013 + Angularjs + JasmineJS + Resharper 7/8 (or Chutzpah)
I recently started a project which used the following technologies: Visual Studio 2013 + Angularjs + JasmineJS + Resharper 7/8 (or Chutzpah)...
Windows 10 "element not found" - explorer.exe error
I recently installed windows 10 preview on an old laptop (Dell Precision) which has an Nvidia Quadro 3000M video card. After running window...
SQLITE NHibernate DateTime2
While working on a project I was using a MsSQL 2012 database for my persistence layer but wanted to use a SQLITE in memory database for my u...
No comments:
Post a Comment