linux-mips
[Top] [All Lists]

Re: How can I determine which files are used?

To: Gerald Champagne <gerald.champagne@esstech.com>
Subject: Re: How can I determine which files are used?
From: Jim Paris <jim@jtan.com>
Date: Thu, 13 Sep 2001 17:53:24 -0400
Cc: linux-mips@oss.sgi.com
In-reply-to: <20010913175007.A4641@neurosis.mit.edu>; from jim@jtan.com on Thu, Sep 13, 2001 at 05:50:07PM -0400
References: <3BA12877.6030505@esstech.com> <20010913175007.A4641@neurosis.mit.edu>
Reply-to: jim@jtan.com
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5i
> make clean
> find . | xargs touch -t 198001010101
> make
> find . -not atime -1 | xargs rm $i
> 
> Which would set all of the access times to be really old, 
> rebuild everything, and then remove all files which weren't
> touched during the build.

Slight correction: make that last command

find . -not -atime -1 | xargs rm $i

and the last sentence "which weren't accessed during the build".
Still untested though :)

-jim

<Prev in Thread] Current Thread [Next in Thread>