__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#!/usr/bin/mawk -f
# $MawkId: nocomment.awk,v 1.3 2020/09/19 13:02:14 tom Exp $
# 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 }
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| ct_length.awk | File | 472 B | 0755 |
|
| decl.awk | File | 3.19 KB | 0755 |
|
| deps.awk | File | 1.82 KB | 0755 |
|
| eatc.awk | File | 635 B | 0755 |
|
| gdecl.awk | File | 2.88 KB | 0755 |
|
| hcal | File | 13.97 KB | 0755 |
|
| hical | File | 2.89 KB | 0755 |
|
| nocomment.awk | File | 654 B | 0755 |
|
| primes.awk | File | 1.03 KB | 0755 |
|
| qsort.awk | File | 1.11 KB | 0755 |
|