代码搜索:awk
找到约 3,459 项符合「awk」的源代码
代码结果 3,459
www.eeworm.com/read/434450/7866006
awk pat.awk
# verify that a record follows a pattern
NF==1{ if ( $1 ~ /^ab(ab|ba)*abba$/ ) print $0, "yes" ; else print "no" }
www.eeworm.com/read/434450/7866012
awk unbundle.awk
# unbundle -- unpack a bundle into separate files
# AKW p 82
$1 != prev { close(prev); prev = $1 }
{
print substr($0, index($0, " ") + 1) >$1
}
www.eeworm.com/read/434450/7866020
awk filename.awk
# Date: 06-03-90 19:07
# From: Herb Martin
# To: Rob Duff
# Subj: comparison:sample
FNR < 3 {
# the output ALWAYS claims the filenames are equal AFTER the first
# file, even though the
www.eeworm.com/read/434450/7866037
awk walk.awk
# from the article:
# "A Walk Through AWK" by Leon S. Levy
# SIGPLAN Notices, V18, #12, December 1983
# Prepare a formatted listing of
www.eeworm.com/read/434450/7866041
awk rtsort.awk
# rtsort - reverse topological sort
# input: predecessor - successor pairs
# output: linear order, successors first
# AKW p174
{ if (!($1 in pcnt))
pcnt[$1] = 0
www.eeworm.com/read/434450/7866044
awk maze.awk
/^#/ {
print
next
}
NF > 0 {
if (start == "")
start = $1
end = $1
$1 = ""
l[end] = $0
}
END {
h[start] = start
q[1] = start
n = 1
m
www.eeworm.com/read/434450/7866048
awk dir.awk
# dir - list directory with date interpretation
#
# date interpretation COUNTRY=44
BEGIN {
split("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec", month, " ");
}
NF == 5 {
if (date(
www.eeworm.com/read/198616/7923559
awk makeconf.awk
BEGIN {
printf("#include \"apue.h\"\n")
printf("#include \n")
printf("#include \n")
printf("\n")
printf("static void pr_sysconf(char *, int);\n")
printf("static void pr_pathco
www.eeworm.com/read/198616/7923586
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/297340/8028762
awk delay.awk
BEGIN {
# simple awk script to generate end-to-end packet lifetime statistics
# in a form suitable for plotting with xgraph.
# Lloyd Wood, July 1999.
# http://www.ee.surrey.ac.uk/Personal/