Tracy Johnson writes:
>
> A common method is to do a
>
> PRINT @;SEARCH=CL "string";KEEPAMDATES
>
> in the MPEX/3000 3rd party tool.
>
> Where the "CL" means caseless.
>
> And the KEEPAMDATES means don't change the Access or Modify dates.
>
> Without experimenting myself, this begs the question, does the POSIX GREP command change the access or modify dates?
POSIX grep will change the access date. The above scan in POSIX would be:
find /ACCOUNT/GROUP | xargs grep -i string
Where the -i means case-insensitive.
The combination of "find | xargs" is extremely useful for doing things against
many files at the same time.
--
Mark Bixby E-mail: [log in to unmask]
Coast Community College Dist. Web: http://www.cccd.edu/~markb/
District Information Services 1370 Adams Ave, Costa Mesa, CA, USA 92626-5429
Technical Support +1 714 438-4647
"You can tune a file system, but you can't tune a fish." - tunefs(1M)