OXIESEC PANEL
- Current Dir:
/
/
usr
/
share
/
doc
/
mawk
/
examples
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/21/2019 03:48:16 PM
rwxr-xr-x
📄
ct_length.awk
407 bytes
04/03/2018 12:34:18 PM
rwxr-xr-x
📄
decl.awk
2.97 KB
04/03/2018 12:34:18 PM
rw-r--r--
📄
deps.awk
1.28 KB
04/03/2018 12:34:18 PM
rw-r--r--
📄
eatc.awk
492 bytes
04/03/2018 12:34:18 PM
rw-r--r--
📄
gdecl.awk
2.72 KB
04/03/2018 12:34:18 PM
rw-r--r--
📄
hcal.gz
4.92 KB
04/03/2018 12:34:18 PM
rw-r--r--
📄
hical
3.12 KB
04/03/2018 12:34:18 PM
rwxr-xr-x
📄
nocomment.awk
590 bytes
04/03/2018 12:34:18 PM
rw-r--r--
📄
primes.awk
1.03 KB
04/03/2018 12:34:18 PM
rw-r--r--
📄
qsort.awk
1.07 KB
04/03/2018 12:34:18 PM
rw-r--r--
Editing: nocomment.awk
Close
#!/usr/bin/mawk -f # remove C comments from a list of files # using a comment as the record separator # # this is trickier than I first thought # The first version in .97-.9993 was wrong BEGIN { # RS is set to a comment (this is mildly tricky, I blew it here RS = "/\*([^*]|\*+[^*/])*\*+/" ORS = " " getline hold filename = FILENAME } # if changing files filename != FILENAME { filename = FILENAME printf "%s" , hold hold = $0 next } { # hold one record because we don't want ORS on the last # record in each file print hold hold = $0 } END { printf "%s", hold }