in reply to Source-Code Analysis?
echo. echo Building file list ... dir K:\WorkingData /S/b/A-D | grep ".plx" - | gawk "BEGIN{ DQ = 34 }{ +if(/Copy /) ; else printf \"%%c%%s%%c\n\", DQ, $0, DQ }" >> plxlst01_ +%1.txt dir J:\ /S/b/A-D | grep ".plx" - | gawk "{ if(/RECYCLER/) ; else print +f \"%%c%%s%%c\n\", DQ, $0, DQ }" >> plxlst01_%1.txt echo. REM REM The following command line searches (grep) each file in plxlst01_% +1.txt for the term in parentheses and outputs the file names. REM The resultant file names are piped to gawk to append a CRLF pair t +o file same. This list is then sorted (sort) and duplicate REM file names are removed (sed) and the resultant list is output to t +he file specified. Note: For some reason, sort -u and uniq don't REM work properly in Windows REM echo Searching for ChkMsgType() ... for /F %%f IN (plxlst01_%1.txt) DO grep -l "ChkMsgType" %%f | gawk "{ +print $0 }" | J:\usr\bin\sort -u >> ChkMsgType_%1.txt
|
|---|