代码搜索:awk

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

代码结果 3,459
www.eeworm.com/read/434450/7865965

awk world.awk

# accumulate the population for each region # AKW p51 BEGIN { FS = "\t" } { pop[$4] += $3 } END { for (name in pop) print name, pop[name] }
www.eeworm.com/read/434450/7865969

awk sum.awk

# accumulate totals and transactions for each person # print the transactions in a separate file for each person # print the total and average when done NF == 2 { a[$1] += $2; b[$1]++
www.eeworm.com/read/434450/7865972

awk substr.awk

# Abbreviate the country names to their first three characters # AKW p43 { $1 = substr($1, 1, 3); print $0 }
www.eeworm.com/read/434450/7865975

awk fields.awk

# Print a listing of line numbers # followed by number of fields per line. { print NR, NF }
www.eeworm.com/read/434450/7865978

awk fact.awk

# calculate and print the factorial of the input function factorial(n) { if (n
www.eeworm.com/read/434450/7865981

awk hello.awk

# classic first program # K&R p6 BEGIN { print "Hello World!" exit }
www.eeworm.com/read/434450/7865984

awk number.awk

# determine whether the input is a number # print it if it is # AKW p40 BEGIN { sign = "[+-]?" decimal = "[0-9]+[.]?[0-9]*" fraction = "[.][0-9]+" exponent = "([eE]" sign "[0-
www.eeworm.com/read/434450/7865987

awk wc.awk

# word count -- prints lines, words, characters { nf += NF; nc += length($0) + 2 }; END { print NR, nf, nc }
www.eeworm.com/read/434450/7865994

awk tsort.awk

# tsort - topological sort of a graph # input: predecessor - successor pairs # output: linear order, predecessors first # AKW p172 { if (!($1 in pcnt)) pcnt[$1] = 0
www.eeworm.com/read/434450/7865999

awk fmt.awk

# fmt - format # input: text # output: text formatted into lines of