gawk '$4~/2222/&&$5~/^66/ {x=x+$14}END{print"Total Value is :"x}' myfile1
gawk '$4~/2222/&&$5~/^66/ {x=x+$14}END{print"Total Value is :"x}' myfile2
gawk '$4~/2222/&&$5~/^66/ {x=x+$14}END{print"Total Value is :"x}' myfile3
如何将这三个TOTAL VALUE X 全部加起来再显示出来呢?
谢谢.