代码搜索:awk
找到约 3,459 项符合「awk」的源代码
代码结果 3,459
www.eeworm.com/read/131315/5935430
awk messages.awk
# This is a demo of different ways of printing with gawk. Try it
# with and without -c (compatibility) flag, redirecting output
# from gawk to a file or not. Some results can be quite unexpected.
B
www.eeworm.com/read/131315/5935443
awk reverse.awk
#this program creates palindromic output - slightly modified from Gawk Manual
{
rev($0, length)
}
function rev(str, len) {
if (len == 0) {
print " ", $0
return
}
printf "%c", substr(str, len,
www.eeworm.com/read/131315/5935444
awk compare.awk
BEGIN {
if (ARGV[1]) print 1
ARGV[1] = ""
if (ARGV[2]) print 2
ARGV[2] = ""
if ("0") print "zero"
if ("") print "null"
if (0) print 0
}
{
if ($0) print $0
if ($1) print $1
}
www.eeworm.com/read/131315/5935446
awk fsrs.awk
BEGIN {
RS=""; FS="\n";
ORS=""; OFS="\n";
}
{
split ($2,f," ")
print $0;
}
www.eeworm.com/read/131315/5935458
awk argarray.awk
BEGIN {
argn = " argument" (ARGC > 1 ? "s" : "")
are = ARGC > 1 ? "are" : "is"
print "here we have " ARGC argn
print "which " are
for (x = 0; x < ARGC; x++)
print "\t", ARGV[x]
print "Enviro
www.eeworm.com/read/131315/5935459
awk header.awk
BEGIN{
"date" | getline cur_time
close ("date")
print "This line printed on", cur_time
}
www.eeworm.com/read/131315/5935460
awk inftest.awk
BEGIN {
x = 100
do { y = x ; x *= 1000; print x,y } while ( y != x )
print "loop terminated"
}