in reply to Re: grab newest file
in thread grab newest file
-M is 40% faster than (stat)[9], no wonder, it does look only at modification time and doesn't build a list.It doesn't build a list but it stores all the values from stat. From the -X man page:
If any of the file tests (or either the "stat" or "lstat" operators) are given the special filehandle consisting of a solitary underline, then the stat structure of the previous file test (or stat operator) is used, saving a system call.So when you use -M _ or -f _ you are retrieving the stored values from the previous stat or file test.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: grab newest file
by shmem (Chancellor) on Jul 07, 2006 at 11:52 UTC |