Re: problem in using "find" command in HPUX 11



ashu wrote:
Ed Morton wrote:
star wrote:
Hi,

I need to find the files which were modified five minutes beofre in
a particular directory.
I tried using the command "find . -mmin -5 " but i got the error
"find: bad option -mmin".
My machine runs on HPUX 11i.
Is there an alternative way for finding the files which were created
5 minutes ago.
Looking forward for your valuable inputs.
Thanking you in advance.

Thanks
Shan

Create a file using "touch" with a timestamp of 5 minutes ago then use
find -newer.

Ed.

find -newer is not working for me....

i get following error message.

Usage: find path-list [predicate-list].

please let me know, how do i go about it.


touch .findcmp
sleep 300
find . -newer .findcmp

If you do not want to wait that long:

touch -t `
perl -e '@t=localtime(time-300);
printf "%02s%02s%02s%02s%02s.%02s",$t[5]%100,$t[4],$t[3],$t[2],$t[1],$t[0]'
` .findcmp
find . -newer .findcmp


--
Michael Tosch @ hp : com
.



Relevant Pages