home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
prgtools
/
gnustuff
/
tos
/
gawk
/
gawk213b.zoo
/
test
/
zap_cpp.awk
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1991-04-06
|
258 b
|
14 lines
# this will remove (comment out) all preprocessor traces from
# cpp produced files:
# run this awk program as follows
# awk -f zap_cpp.awk <file>
# end redirect output where you want it to
NF > 0 {
if ($1 ~ /^#/)
print "/*", $0, "*/"
else
print
}