HP3000-L Archives

June 1997, Week 1

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:
"Stigers, Gregory - ANDOVER" <[log in to unmask]>
Reply To:
Stigers, Gregory - ANDOVER
Date:
Mon, 2 Jun 1997 11:53:10 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (50 lines)
I grep regularly (no pun intended, UNIX weenies). As for Y2K research,
it's easier said (no pun intended, UNIX weenies) than done. Beg, borrow,
steal (but don't buy without reading some of it first) a copy of the
O'Reilly Associates "sed & awk"; it first deals with grep, title
notwithstanding. Or, a friend who is a UNIX guru recommended I look at
perl for our text processing needs; you might want to evaluate that
advice for your own text processing needs.

Also, you may have a 'sh' UDC as part of the HPPXUDC.PUB.SYS POSIX shell
UDC that lets you run the POSIX shell; otherwise, it's "xeq sh.hpbin.sys
-L" to get in. Then, "man grep" (case counts in the POSIX shell; for
more on that and the HFS syntax below, run POSIXCBT.LSN.SYS); ^Y is your
key to get out of man pages; I do not know if this is POSIX standard, or
a concession to MPE. Nevertheless, grep is powerful and does some neat
tricks, so the "man page" is worth the look.

My understanding of the following is courtesy of The UNIX-Haters
Handbook. One problem is the difference between UNIX and most every
other operating system in the world: most OSs let the individual command
parse wildcards, whereas UNIX expect the shell to parse wildcards. So,
you can grep against wildcards such as all of the source code in
SOURCE.PROGRAM within the shell (grep -i DATE /PROGRAM/SOURCE/*), or you
can grep just one file such as X1234567.SOURCE.PROGRAM from CI (RUN
GREP.HPBIN.SYS;INFO ="DATE /PROGRAM/SOURCE/X1234567").

My experience with sed and awk are in their infancy, and I have yet to
start with perl, but feel free to contact me if I can answer further
questions.

>----------
>From:  [log in to unmask][SMTP:[log in to unmask]]
>Sent:  Friday, May 30, 1997 4:12 PM
>To:    [log in to unmask]
>Subject:       [HP3000-L] grep searches for a string in MPE program source code
>
>Has anyone used the posix "grep" command on MPE/iX to search for a string
>in a group of MPE files?  We're stumbling on the hfs/MPE file structure
>crossover.
>
>This is potentially very handy for bulk modification projects: we'd like
>grep to identify all the occurances of variables that need to change for
>Y2K source code conversion.
>
>Please reply also if there's a straight forward way to do this using
>common MPE tools.
>
>-------------------==== Posted via Deja News ====-----------------------
>      http://www.dejanews.com/     Search, Read, Post to Usenet
>

ATOM RSS1 RSS2