awk.sc2

来自「Advanced Bash&#8722 Scripting Guide An 」· SC2 代码 · 共 16 行

SC2
16
字号
# Second awk script-- awk.sc2BEGIN{ FS=":"; OFS="\t"    print "  NAME\t\tDISTRICT\tQUANTITY"    print "___________________________________________\n" }{print $1"\t  " $3"\t\t" $7}{total+=$7}/north/{count++}END{    print "---------------------------------------------"    print "The total quantity is " total    print "The number of northern salespersons is " count "."}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?