View Single Post

  #1 (permalink)  
Old 10-09-2007, 09:42 PM
svinopas svinopas is offline
Junior Member
User
 
Join Date: Oct 2007
My distro: Ubuntu
Posts: 2
Rep Power: 0
svinopas is on a distinguished road
Default How to calculate date minus 72 hours?

There are some log files on my server (CentOS), filenames are like this: 20070929210001.srv0912.tgz

I need to find logfiles between -72 and -2 hours from current date (time). Is it possible to do it with some UNIX commands and implement in shell script then?

Last edited by svinopas; 10-09-2007 at 09:57 PM.. Reason: added OS
Reply With Quote