摘要:
awk '{if(NR>1)a[$1]+=$2}END{for(i in a)printf "%s\t %d\n",i,a[i]}' querylog* > total.txt 阅读全文
摘要:
ls *.tar.gz | xargs -n1 tar xzvf //批量解压ls | awk '{ print "tar zcvf "$0".tar.gz " $0|"/bin/bash" }' //批量打包ls | awk '{ print "tar zcvf "$0".tar.gz " $0 }'|/bin/bash //批量打包gzip -d *.gz 阅读全文