how to find no of annotations of a specific chromosome (say chr10 that is in the chromosome's column)in a tab delimited file in linux -


for example first line of file when filter data using grep below. there multiple entries of chr10 in third column . how count number of annotations of chromosome 10 (chr10). typed in $ grep "chr10" refseq-genes.txt | wc -w got teh below answer. correct. 28528

$ grep "chr10" refseq-genes.txt | head -n 1 0 nm_138499 chr10 + 134210701 134231358 134210730 134219777 3 134210701,134218129,134230564, 134210855,134219793,134231358, 0 pwwp2b cmpl cmpl 0,2,-1,


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -