find command help

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

find command help

priya
HI if i want to find files which are modified 100 sec ago can that be done in unix

i tried -mtime that is not giving results , newer is not working in my unix flavour  nor -mmin works

so is there any other way to find files modified 100 seconds ago.
Reply | Threaded
Open this post in threaded view
|

Re: find command help

Guru
Administrator
Hi
  Can you please post the result of the below command:

uname -a


Reply | Threaded
Open this post in threaded view
|

Re: find command help

Guru
Administrator
Hi
   There should be a utility available in your system called find2perl. This utility takes same kind of arguments as find and creates a alternative perl script of the find command. So, we need to re-direct the output of this command to a file and then run the file to get the desired output.

For ex, if your find command is:

find . -newer f1

you give this as:

find2perl . -newer f1 > test.pl

Now, run this perl script, the output of which will be the same as you had expected with your find command:

./test.pl