Hi, I wondered if we could do this with shell script?
How to compare the mtime of a file with the current time and check whether its less than 24 hours.
Thanks.
Hi, I wondered if we could do this with shell script?
How to compare the mtime of a file with the current time and check whether its less than 24 hours.
Thanks.
man find and look for the -mtime test
Hi,
This script find file less then 24 hour and delete them:
#!/bin/bash
find /export/home/urpath * -type f -mtime -24 -exec rm {}
Mehrdad