HP3000-L Archives

August 1997, Week 3

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:
[log in to unmask][log in to unmask]@;show;keep;create
>> TURBO-STORE/RESTORE VERSION C.50.13 HP36398A <<
(C) 1986 HEWLETT-PACKARD CO.
WED, AUG 20, 1997, 10:33 AM

'CREATE' OPTION DEFAULTING TO 'CREATE=ACCOUNT,GROUP,CREATOR,PATH'
BASED ON YOUR CAPABILITIES (S/R 502)

INVOKING CMSTORE TO READ MPEv MEDIA
MPE-XL Transport Store-Restore, B.79.06 (C) Hewlett-Packard Co., 1988.
RESTORE ;@[log in to unmask]@;SHOW;KEEP;CREATE;LDEV= 7
WED, AUG 20, 1997, 10:34 AM [...]39_20Aug199714:46:[log in to unmask]
Date:
Thu, 21 Aug 1997 16:18:50 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (27 lines)
Stigers, Gregory - ANDOVER writes:
>
> Does grep by default transverse subdirectories of the file arg? Can this
> be changed?

Recursion is the default.  To suppress it, use "-level 0".

> Would find ./ -exec grep JOB {} also work for what is discussed below?
>
> If you are grepping for job statements, I use grep !JOB
> /ACCOUNT/JOBGROUPS/*. I haven't had that 'blow my buffer' yet.

How about:

        find /ACCOUNT/JOBGROUPS -level 0 -type f -exec grep ^!JOB {} \;

The "-type f" ignores the group directory name, ^!JOB says it must occur at
the start of the line, and the delimiting semicolon must be escaped with a
backslash or else the shell would try and interpret it instead of the find
command.
--
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