awk.sc2
来自「UNIX[1].shell范例精解(第4版)_code」· SC2 代码 · 共 16 行
SC2
16 行
# Second awk script-- awk.sc2BEGIN{ FS=":" 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 + -
显示快捷键?