HP3000-L Archives

May 1997, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Bixby <[log in to unmask]>
Reply To:
Date:
Sat, 31 May 1997 10:26:38 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
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)

ATOM RSS1 RSS2