home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / gawk-2.15.6-base.tgz / gawk-2.15.6-base.tar / fsf / gawk / test / zap_cpp.awk < prev   
Text File  |  1993-10-19  |  258b  |  14 lines

  1. # this will remove (comment out) all preprocessor traces from 
  2. # cpp produced files:
  3. # run this awk program as follows
  4. #  awk -f zap_cpp.awk <file>
  5. # end redirect output where you want it to
  6. NF > 0 {
  7.   if ($1 ~ /^#/)
  8.     print "/*", $0, "*/"
  9.   else
  10.     print
  11. }
  12.  
  13.     
  14.