Linux绝技

find ./ -name *.Annovar.hg19_multianno.vcf.gz |xargs -i cp {} ./bak/

find `pwd` -name "*.depth"|awk '{print "echo -e \""substr($1,31,13)" \\c\"; cat "$1"|awk '\''BEGIN {i=0} {  i=i+1  }  END {print i}'\''"}'|bash|sort -n -k 2

ls *.tgz -l|awk '{print "mkdir "substr($9,1,23)" ; cp "$9" ./"substr($9,1,23) }'|bash

find ./ -name "regioncount.xls"|awk '{print "cat "$1"|awk '\''BEGIN {i=0} { if($9==0){ i=i+1 } }  END {print i}'\''"}'|bash 

ls *.tgz -l|awk '{print "mkdir "substr($9,1,23)" ; cp "$9" ./"substr($9,1,23)" ; cd ./"substr($9,1,23)" ; tar -xf "$9 "; cd .." }'|bash

find ./ -name "regioncount.xls"|awk '{print "cat "$1"|awk '\''BEGIN {i=0} { if($9==0){ i=i+1 } }  END {print i}'\''"}'|bash

posted @ 2016-07-21 14:30  similarface  阅读(175)  评论(0编辑  收藏  举报