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...
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...
No comments:
Post a Comment