awk的正则表达式匹配中,如果要使用外部shell变量,先在变量外加双引号,再加单引号即可,如:
for i in read write print; do cat file.txt | awk '{ if ($7~/'"$i"'/) {print $0} }'| wc -l ; done
在写shell脚本时,经常会使用到awk程序。但是有些...
...ng,Description="Physical phasing haplotype information, describing how the alternate alleles are phased in relation to one another; will always be heterozygous and is not intended to describe called alleles">
Warning: Expected at least 2 parts in FORMAT entry: ID=PID,Number=1,Type=String,Descrip...