on Sun, Dec 31, 2000 at 02:04:57PM -0500, Maciej Kalisiak ([EMAIL PROTECTED]) 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.
Several hacks come to mind: - Copy the files and grep the copies (does this change the timestamps?) - Remount the partition read-only. - Build a tool to check timestamps, save them, grep the files, then reapply the timestamps with 'touch'. Cheers. -- Karsten M. Self <kmself@ix.netcom.com> http://kmself.home.netcom.com/ Evangelist, Zelerate, Inc. http://www.zelerate.org What part of "Gestalt" don't you understand? There is no K5 cabal http://gestalt-system.sourceforge.net/ http://www.kuro5hin.org
pgpWqNm0XSzF3.pgp
Description: PGP signature