Skip to main content
Inspiring
October 3, 2014
Question

Unix Time (mtime)?

  • October 3, 2014
  • 0 replies
  • 448 views

I have a command line that finds files in a folder and deletes the ones that are a over a day old. I can't seem to find a way/the write code to change the 1 (full) day into a half day (12) hours (f -mtime +1 -exec rm -rf {} ) = older than a day. Do you need to convert into milliseconds and then figure out what a half day is in milliseconds?

This topic has been closed for replies.