I am using the find command to gather files for archives using the -mtime option. I have wrriten the script it works well, but now I want to add another feature without too much rewite ... so I am looking for a way to find all files >= 0 when using -mtime. Looking at the man page ... this does not seem to be an option ... or is it?
Any ideas?
# ll
total 24
-rwxr--r-- 1 root root 3260 Apr 9 09:04 TEMPLATE.SH
-rwxr--r-- 1 root root 8060 Apr 9 09:29 archive_log.sh
# find /sysadmin/script -name *.\* -mtime +0 -exec ls -l {} \;
# find /sysadmin/script -name *.\* -mtime 0 -exec ls -l {} \;
-rwxr--r-- 1 root root 3260 Apr 9 09:04 /sysadmin/script/common/TEMPLATE.SH
-rwxr--r-- 1 root root 8060 Apr 9 09:29 /sysadmin/script/common/archive_log.sh
#
# find /sysadmin/script -name *.\* -mtime -0 -exec ls -l {} \;
Any ideas?
# ll
total 24
-rwxr--r-- 1 root root 3260 Apr 9 09:04 TEMPLATE.SH
-rwxr--r-- 1 root root 8060 Apr 9 09:29 archive_log.sh
# find /sysadmin/script -name *.\* -mtime +0 -exec ls -l {} \;
# find /sysadmin/script -name *.\* -mtime 0 -exec ls -l {} \;
-rwxr--r-- 1 root root 3260 Apr 9 09:04 /sysadmin/script/common/TEMPLATE.SH
-rwxr--r-- 1 root root 8060 Apr 9 09:29 /sysadmin/script/common/archive_log.sh
#
# find /sysadmin/script -name *.\* -mtime -0 -exec ls -l {} \;