[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to grep without changing timestamps?



On Sun, Dec 31, 2000 at 02:04:57PM -0500, Maciej Kalisiak wrote:
> Hello all,
> 
> Is it possible to grep a ton of files without modifying their date/timestamps?
> Currently if I use grep, it changes the access time of all files touched,
> which causes mutt to lose track of the folders which have new mail (I guess it
> looks at the timestamp last modified and last accessed to figure this out).
> Occasionally I do want to include the mail folders in my greps, so bypassing
> the "mail" directory is not a solution.

    I doubt it. The point of the timestamps are to be accurate. However, you might
be able to hack the inode afterwards, not that I'd recommend it. 

    Mike

-- 
Michael P. Soulier <msoulier@storm.ca>
"...the word HACK is used as a verb to indicate a massive amount
of nerd-like effort."  -Harley Hahn, A Student's Guide to UNIX
PGP Public Key: http://www.storm.ca/~msoulier/email.phtml

Attachment: pgpJ_dVStswgk.pgp
Description: PGP signature


Reply to: