@OS question
Brian K. White
brian at aljex.com
Mon Apr 12 10:51:26 PDT 2004
Brian K. White wrote:
> run this to find all the places where UNIX appears in the IF
> statement. find /u/appl/filepro -name prc.* |xargs awk -F: '{if($2 ~
> "UNIX") print FILENAME":"FNR"\n"$0"\n"}' |less
Slight enhancement that breaks the output lines up so it's easier to read
and correctly spot comments etc...
You can also type this in in two lines just like you see it here, but you
should cut&paste easily botched stuff like this rather than type it anyways.
find /u/appl/filepro -name prc.* |xargs awk -F: '{if($2 ~ "UNIX")
print FILENAME":"FNR"\n"$1": If: "$2"\nThen: "$3"\n"}' |less
this produces output like this:
/u/appl/filepro/log_trk/prc.faxit:18
: If: @os eq "UNIX"
Then: gosub unix ; end
/u/appl/filepro/log_trk/prc.input:31
: If: @sn eq "A" and @os eq "UNIX"
Then: show " \rESC ESC\r - Save \r DELETE \r - Exit
"
Remember to do this for all (in their case, 3) filepro directories.
Brian K. White -- brian at aljex.com -- http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani
More information about the Filepro-list
mailing list