Re: rm - Arguments too long

davehinz_at_spamcop.net
Date: 04/25/03


Date: 25 Apr 2003 14:32:20 GMT

In comp.unix.admin ben <ben_m_f@yahoo.co.uk> wrote:

> Another way is to create a file with touch (discussed earlier) with
> arguements to make its mtime 3 days old. Then use find . ! -newer
> my3dayoldfile

> This will pull out every file _not_ newer that 3 days.

Take special care not to run this from, say, / . Lots of stuff in
/bin, for instance, is older than 3 days. It self-stops, of course,
but you don't want to go there.

Dave Hinz