Bernhard Voelker wrote:
On 10/31/18 8:10 AM, Per Jessen wrote:
Bernhard Voelker wrote:
That is exactly what find does by using gnulib's FTS: it reads a certain number of entries, processes them, and then reads the next ones until all are done (or find terminates otherwise).
Hi Berny
That sounds like what I am asking for - how do I make 'find' do that?
That needs to be the 'ftsfind' binary in older versions, starting with 4.3.
I might try it, just build it from source on this system. It would be very cool if the ftsfind works.
After all, this seems to be a very special action on that directory. What will you do with that list? I mean you'll most probably need yet another round to move or delete the files ...
Yes, most of them will be deleted - being careful and doing them one by _______^^^^^^^^^^^^^^^^^^^^^^^^^^^^
What is the criteria? Can you decide by filename?
Age. The filename do include a timestamp, but I don't want to rely on it.
Then you could generate a list of commands like shown in the other email with 'find ... -printf'.
Well, for the biggest directory with some 10mill files, I now have a full list, I'll slowly start looping through that and deleting the files. -- Per Jessen, Zürich (9.8°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org