代码搜索:awk

找到约 3,459 项符合「awk」的源代码

代码结果 3,459
www.eeworm.com/read/289562/7805823

awk makeopt.awk

BEGIN { printf("#include \"apue.h\"\n") printf("#include \n") printf("\n") printf("static void pr_sysconf(char *, int);\n") printf("static void pr_pathconf(char *, char *, int);\n") pri
www.eeworm.com/read/434450/7865872

awk reopen.awk

# Date: 04-12-89 11:24 # From: Jeff Clough # To: Rob Duff # Subj: Bug (I think) in AWK 2.12 # The AWK documentation implied that I could write to a file and then use # that same fi
www.eeworm.com/read/434450/7865874

awk getline.awk

# Date: 04-19-89 09:22 # From: Will Duquette # To: Rob Duff # Subj: Awk V2.12 # # Using the "gsub()" function in certain ways breaks the "getline" # function. For example, { gsub
www.eeworm.com/read/434450/7865878

awk array.awk

# demonstrate set operations on an array $1 == "IN" { if ($2 in a) print $2, a[$2]; else print $2, "is not in a"; next} $1 == "DEL" { delete a[$2]; next } $0 == "ALL" { for (i in a) printf("a[%s]
www.eeworm.com/read/434450/7865881

awk gsub.awk

# demonstrate global substitution { gsub($1, $2, $3); print $3 }
www.eeworm.com/read/434450/7865882

awk fn.awk

# print each line with the record number # the record number within the file # and the filename # separate each file with a blank line FILENAME != prev { printf "\n\n" prev = FILENAME
www.eeworm.com/read/434450/7865885

awk eurasia.awk

# accumulate the populations of Asia and Europe # print these two totals at the end # AKW p51 /Asia/ { pop["Asia"] += $3 } /Europe/ { pop["Europe"] += $3 } END { print "Asian population
www.eeworm.com/read/434450/7865892

awk seq.awk

# seq - print sequences of integers # input: arguments q, p q, or p q r; q >= p; r > 0 # output: integers 1 to q, p to q, or p to q in steps of r # AKW p64 BEGIN { if (ARGC == 2)
www.eeworm.com/read/434450/7865894

awk argv.awk

# print all the command line arguments of the program BEGIN { for (i in ARGV) print i, ARGV[i] }
www.eeworm.com/read/434450/7865896

awk dearc.awk

# extract files from a text archive $1=="-ARCHIVE-" { if (file) close(file) file = $2 print file next } { print > file }