On Sun, 3 Apr 2022 21:06:05 +0000, Farley, Peter x23353 wrote:
>
>Using "sh -x" is not as helpful though because although you get a separate
>output line for the "cat" of the MVS data set (good, would allow removal of
>the "echo" command) but you also get another line for the piped "fgrep"
>(not-so -useful noise).
>
Perhaps a function which could be defined at the top of your
control file (untested, as seems to be my habit):
FindIt(){
if Result=$( cp "$1" /dev/fd/1 |
fgrep -n STRNIG_TO_FIND )
then
printf '\nFound in %s\n%s\n' "$1" "$Result"
fi; }
--
gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN