From e0cb3aaf1be64378558f788b5bb0706e8c5f472b Mon Sep 17 00:00:00 2001 From: Richard Schoen Date: Tue, 17 Dec 2024 12:08:20 -0600 Subject: [PATCH] Update PFGREP.MD --- samples/PFGREP.MD | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/samples/PFGREP.MD b/samples/PFGREP.MD index 5a4cb6b..3abe693 100644 --- a/samples/PFGREP.MD +++ b/samples/PFGREP.MD @@ -1,7 +1,11 @@ # PFGREP Command Usage Samples +THe PFGREP command runs the pfgrep PASE utility under the covers using the QSHBASH command from QShell on i. + +Simon Hutchinsone Grep Article +https://www.rpgpgm.com/2023/12/using-qshell-to-search-source-members.html + +#### Example to scan QCLSRC in library QGPL for the word: sbs +PFGREP CMDARGS('-i -n "sbs" /QSYS.LIB/QGPL.LIB/QCLSRC.FILE/*.MBR') DSPSTDOUT(*YES) -#### Example to scan QCLSRC in library QGPL for the word sbs -PFGREP CMDARGS('-i -n "sbs" /QSYS.LIB/QGPL.LIB/QCLSRC.FILE/*') DSPSTDOUT(*YES) - -#### Example to scan QCLSRC in library QGPL for the word sbs -PFGREP CMDARGS('-i -n "sbs" /QSYS.LIB/QGPL.LIB/QCLSRC.FILE/*') DSPSTDOUT(*YES) +#### Example to scan all Q* files in library QGPL for the word: sbs +PFGREP CMDARGS('-i -n "sbs" /QSYS.LIB/QGPL.LIB/Q*.FILE/*.MBR') DSPSTDOUT(*YES)