Files not found
- From: "Leslie Rhorer" <lrhorer@xxxxxxxxxxx>
- Date: Sat, 8 Mar 2008 00:31:31 -0600
I have a little puzzle I need to solve. I want to look in a directory
and take action if no files less than 5 minutes old are found. If I were
looking for files which are younger than five minutes, I could just do
find ./ -cmin -5 -exec do-something '{}' \;
Similarly, if I wanted it to take action if it finds files older than 5
minutes I could do
find ./ -cmin +5 -exec do-something '{}' \;
What I need, however, is to take action if there are no files less than
5 minutes old, regardless of whether there are files more than 5 minutes old
or not.
.
- Follow-Ups:
- Re: Files not found
- From: John
- Re: Files not found
- Prev by Date: Re: Stack consumption in NPTL
- Next by Date: How can spamassassin headers be filtered so that all or most of the spam messages, rather than mixed in with email, all or most go to a separate email file that can be checked for any false positives?
- Previous by thread: why does it not get the value in perl run shell script to call include php file?
- Next by thread: Re: Files not found
- Index(es):