Subject: | |
From: | |
Reply To: | |
Date: | Sun, 19 Oct 1997 17:36:19 +0100 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
At 14:58 17.10.1997 EDT, you wrote:
>I need help trying to get a UDC to work... or maybe there's a better way to
>accomplish what I'm trying to do. I'm in the process of documenting a legacy
>system that has never been documented. What I'd like to do perform a text
>search on files in certain groups. I can issue the vesoft %print command
>without a problem. But I would like to automate this process... somewhat.
There already have been quite a lot of nice tips, mostly using MPEX, as far
as I understand. As of MPE/iX 5.0 you might also use the Posix Shell utilities
in situations like this... for example grep (grep.hpbin.sys).
In the Shell (enter with SH.HPBIN.SYS -L or simply with SH when you have
done some SETCATALOG HPPXUDC.PUB.SYS before) it would be something like...
grep 'mystring' /MYACCT/GRP1/* /MYACCT/GRP2/*
You can also use grep or other Posix utils from the CI, they reside in the
group HPBIN.SYS, but the wildcard expansion is done by the shell, so the
above example would need something like...
xeq sh.hpbin.sys "-L -c grep 'mystring' /MYACCT/GRP1/* /MYACCT/GRP2/*"
The above could also be used/packaged in a small command file, if desired.
Grep has a number of options (like -i for case-insensitive) and does also
allow to search for patterns, not just strings.
Lars (don't have MPEX myself ;-)
|
|
|