Syntax of find command with “-mmin n” option -n : find command will look for files modified in last n minutes.
Thus find -ctime 0 finds everything for which the inode has changed (e.g. includes file creation, but also counts link count and permissions and filesize change) less than an hour ago.
Use -mtime option with the find command to search files based on modification time followed by the number of days. Number of days can be used in two formats.
Try a different order of arguments. Your command:
.svn
, then the entry is ignoredThe following command prunes .svn
directories before descending into them:
find . -type d -name .svn -prune -o -mmin -5 -type f -print
If a file is a directory and has the name .svn
, ignore it and do not descend into it either. Otherwise, if it is last modified (-mmin
) within 5 minutes and a file, print the filename.
-atime
looks at the last accessed time. I think you're looking for -mmin
. I've only got cygwin handy so I can't test it...
-and
is assumed between -atime
and -type d
, so you are pruning only SVN directories older than 5 minutes. Try:
find . -type d -name .svn -prune -o -type f -mmin 5 -print
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With