REDROOM
PHP 8.5.2
Path:
Logout
Edit File
Size: 635 B
Close
//usr/share/doc/mawk/examples/eatc.awk
Text
Base64
#!/usr/bin/mawk -f # $MawkId: eatc.awk,v 1.3 2020/09/19 11:51:23 tom Exp $ # eatc.awk # another program to remove comments { while( ( t = index($0 , "/*") ) > 0 ) { if ( t > 1 ) printf "%s" , substr($0,1,t-1) $0 = eat_comment( ( t + 2 <= length($0) ) ? substr($0, t+2) : "" ) } print } function eat_comment(s, t2) { #replace comment by one space printf " " while ( (t2 = index(s, "*/")) == 0 ) if ( getline s == 0 ) { # input error -- unterminated comment system("/bin/sh -c 'echo unterminated comment' 1>&2") exit 1 } return ( t2 + 2 <= length(s) ) ? substr(s,t2+2) : "" }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 10
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
ct_length.awk
472 B
lrwxr-xr-x
2020-09-19 14:49:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
decl.awk
3.19 KB
lrwxr-xr-x
2020-09-19 13:46:31
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
deps.awk
1.82 KB
lrwxr-xr-x
2023-10-31 22:58:49
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
eatc.awk
635 B
lrwxr-xr-x
2020-09-19 11:51:23
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
gdecl.awk
2.88 KB
lrwxr-xr-x
2020-09-19 14:04:25
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
hcal
13.97 KB
lrwxr-xr-x
2020-09-24 22:05:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
hical
2.89 KB
lrwxr-xr-x
2009-08-21 00:36:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
nocomment.awk
654 B
lrwxr-xr-x
2020-09-19 13:02:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
primes.awk
1.03 KB
lrwxr-xr-x
2008-09-09 20:52:55
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
qsort.awk
1.11 KB
lrwxr-xr-x
2020-09-19 14:20:45
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).