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.
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...
Redmine Setup using Turnkey Linux
Redmine Install Process -- Download and install turnkey linux's redmine appliance http://www.turnkeylinux.org/redmine -- install up...
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)...
No comments:
Post a Comment