会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小鲨鱼2018
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
120
121
122
123
124
125
126
127
128
···
408
下一页
2023年5月30日
linux 中find命令查找到文件仅显示文件名、路径名、完整路径
摘要: 001、 [root@PC1 test3]# ls test1 test2 [root@PC1 test3]# tree ## 测试数据 . ├── test1 │ └── a.txt └── test2 └── b.txt 2 directories, 2 files [root@PC1 test
阅读全文
posted @ 2023-05-30 16:42 小鲨鱼2018
阅读(2960)
评论(0)
推荐(0)
2023年5月29日
linux 中删除第一个空格或者制表符之前的所有内容
摘要: 001、 [root@PC1 test4]# ls a.txt [root@PC1 test4]# cat a.txt ## 测试数据 aa bb cc dd kk jj ee uu rr [root@PC1 test4]# sed -n l a.txt aa bb cc$ dd\tkk\tjj$
阅读全文
posted @ 2023-05-29 00:47 小鲨鱼2018
阅读(119)
评论(0)
推荐(0)
linux 中实现按照行的长短进行排序
摘要: 001、 [root@PC1 test4]# ls a.txt [root@PC1 test4]# cat a.txt ## 测试数据 ee ff 88 fff aa ff uuk fff uuuu kkk yyy fff kkkk [root@PC1 test4]# awk '{print len
阅读全文
posted @ 2023-05-29 00:02 小鲨鱼2018
阅读(173)
评论(0)
推荐(0)
2023年5月28日
linux 中 grep命令匹配空格和制表符
摘要: 001、匹配空格 [root@PC1 test4]# ls a.txt [root@PC1 test4]# cat a.txt ## 测试数据 1_aa bb 2_ccdd 3_ee ff 4_gg hh kk [root@PC1 test4]# sed -n l a.txt ## 显示出空格和制表
阅读全文
posted @ 2023-05-28 23:49 小鲨鱼2018
阅读(1078)
评论(0)
推荐(0)
使用hiblup计算个体杂合率和个体纯合率
摘要: 001、计算纯合率 (base) [root@PC1 test]# ls outcome.bed outcome.fam outcome.map outcome.ped outcome.bim outcome.log outcome.nosex (base) [root@PC1 test]# (ba
阅读全文
posted @ 2023-05-28 16:24 小鲨鱼2018
阅读(159)
评论(0)
推荐(0)
使用hiblup计算基因频率和基因型频率
摘要: 001、测试数据 (base) [root@PC1 test]# ls ## 测试数据, plink格式 outcome.map outcome.ped (base) [root@PC1 test]# cat outcome.map 1 snp1 0 55910 1 snp2 0 85204 1 s
阅读全文
posted @ 2023-05-28 16:16 小鲨鱼2018
阅读(225)
评论(0)
推荐(0)
vcftools中 --max-missing 参数
摘要: --max-missing 参数表示:最大的丢失率不超过 1-xxxx。 (base) [root@PC1 test]# ls outcome.map outcome.ped outcome.vcf (base) [root@PC1 test]# cat outcome.map 1 snp1 0 5
阅读全文
posted @ 2023-05-28 12:34 小鲨鱼2018
阅读(994)
评论(0)
推荐(0)
shell 中截取字符串
摘要: aaaa、#和%表示的是匹配删除 001、 # 表示从左侧删除匹配的字符, 单个#号表示非贪婪匹配, 两个#号表示贪婪匹配 [root@PC1 test]# ls [root@PC1 test]# var=http://www.aaa.com/123.htm ## 测试字符串 [root@PC1 t
阅读全文
posted @ 2023-05-28 00:10 小鲨鱼2018
阅读(30)
评论(0)
推荐(0)
2023年5月27日
linux 中 awk命令实现批量修改文件名
摘要: 001、 [root@PC1 test]# ls a.txt b.txt c.txt [root@PC1 test]# find *.txt a.txt b.txt c.txt [root@PC1 test]# find *.txt | awk '{print "mv", $0, $0".bak"}
阅读全文
posted @ 2023-05-27 23:01 小鲨鱼2018
阅读(295)
评论(0)
推荐(0)
linux 中提取文本中的最后几个字符
摘要: 001、grep实现 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试数据 234 fw3mh i86st sfg yzv e32kut zd7 utes eywq [root@PC1 test]# grep -o ".$" a.t
阅读全文
posted @ 2023-05-27 22:33 小鲨鱼2018
阅读(1186)
评论(0)
推荐(0)
上一页
1
···
120
121
122
123
124
125
126
127
128
···
408
下一页
公告