摘要:
来源:https://blog.csdn.net/samwalt/article/details/84707346 1、直接测试 > a= c(1,3,8,5,6,7,5,2) ## 测试数据 > max_idx <- which.max(a) ## 返回最大值在a中的索引 > max_idx [1 阅读全文
posted @ 2021-11-21 23:26
小鲨鱼2018
阅读(2051)
评论(0)
推荐(0)
摘要:
1、直接测试 root@PC1:/home/test# ls a.fna root@PC1:/home/test# cat a.fna >NC_019458.2 Ovis aries breed Texel chromosome 1, Oar_v4.0, [whole genome shotgun 阅读全文
posted @ 2021-11-21 21:43
小鲨鱼2018
阅读(54)
评论(0)
推荐(0)
摘要:
+ :表示1个以上 * :表示0个以上 阅读全文
posted @ 2021-11-21 20:32
小鲨鱼2018
阅读(996)
评论(0)
推荐(0)
摘要:
1、head 直接实现 root@PC1:/home/test# ls a.txt b.txt c.txt root@PC1:/home/test# cat a.txt 1 2 3 4 5 root@PC1:/home/test# cat b.txt 06 07 08 09 10 root@PC1: 阅读全文
posted @ 2021-11-21 20:16
小鲨鱼2018
阅读(992)
评论(0)
推荐(0)
摘要:
1、在所有行后面添加空行,awk实现 root@PC1:/home/test# ls a.txt root@PC1:/home/test# cat a.txt i 3 a d g x 8 6 k m x a a y n root@PC1:/home/test# awk '{print $0, "\n 阅读全文
posted @ 2021-11-21 12:33
小鲨鱼2018
阅读(562)
评论(0)
推荐(0)
摘要:
1、[^xx] 表示取反 root@PC1:/home/test# ls a.txt root@PC1:/home/test# cat a.txt ## 测试数据 333 d g 8 3 d g ! _ d g ! ! ! , . ? root@PC1:/home/test# grep -v "3" 阅读全文
posted @ 2021-11-21 12:15
小鲨鱼2018
阅读(52)
评论(0)
推荐(0)
摘要:
1、合并所有的.txt文件 root@PC1:/home/test# ls ## 测试数据 a.txt b.txt c.txt d.csv e.csv txt_combine.py root@PC1:/home/test# head a.txt b.txt c.txt d.csv e.csv ## 阅读全文
posted @ 2021-11-21 11:10
小鲨鱼2018
阅读(66)
评论(0)
推荐(0)
摘要:
1、遍历以特定字符结尾的文件 root@PC1:/home/test# ls ## 测试文件类型 out1.csv out1.ped out2.csv out2.ped out3.csv out3.ped test1.txt test2.txt test3.txt traverse_file.py 阅读全文
posted @ 2021-11-21 10:57
小鲨鱼2018
阅读(424)
评论(0)
推荐(0)

浙公网安备 33010602011771号