Re: [dev] alternatives to find for querying the filesystem

From: Chris Down <chris_AT_chrisdown.name>
Date: Fri, 13 Dec 2013 03:36:07 +0800

On 2013-12-12 14:32:03 -0500, Andrew Gwozdziewycz wrote:
> So, to find all files in /etc modified within the last hour...
>
> walk /etc | agep -1H -
>
> Or,
>
> walk /etc | xargs agep -1H

The problem here is speed. For any non-trivial number of files, this
will become non-negligibly slower due to the number of stat family calls
required (and the cost of reinterpreting the data each time).

Received on Thu Dec 12 2013 - 20:36:07 CET

This archive was generated by hypermail 2.3.0 : Thu Dec 12 2013 - 20:48:05 CET