wangleibio的个人博客分享 http://blog.sciencenet.cn/u/wangleibio

博文

linux sum

已有 5394 次阅读 2011-12-16 16:48 |系统分类:科研笔记| linux

文件 countagresult.txt 如下:
Gm01    phytozome6      CDS     51481   51625   0       -       1      
Gm01    phytozome6      exon    51481   51625   0       -       .      
Gm01    phytozome6      CDS     51828   51925   0       -       0      
Gm01    phytozome6      exon    51828   51925   0       -       .      
Gm01    phytozome6      CDS     52362   52465   8       -       2      
Gm01    phytozome6      exon    52362   52465   8       -       .    
Gm01    phytozome6      CDS     52517   52571   0       -       0      
Gm01    phytozome6      exon    52517   52571   0       -       .      
 
linux 命令
less -S countagresult.txt |awk '$3=="exon"{sum +=$6}END{print sum}'shipped
参考websit:
 
 


https://blog.sciencenet.cn/blog-294163-519114.html


收藏 IP: 61.129.42.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-14 03:15

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部