会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小鲨鱼2018
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
93
94
95
96
97
98
99
100
101
···
408
下一页
2023年9月13日
linux 中实现指定列进行去重复
摘要: 001、 awk [root@pc1 test02]# ls a.txt [root@pc1 test02]# cat a.txt a ii b kk a jj c yy b 77 e tt [root@pc1 test02]# awk '!ay[$1]++' a.txt a ii b kk c y
阅读全文
posted @ 2023-09-13 11:37 小鲨鱼2018
阅读(641)
评论(0)
推荐(0)
2023年9月12日
linux 中while循环中从文件中读取变量
摘要: 001、 [root@pc1 test02]# ls a.txt [root@pc1 test02]# cat a.txt ## 测试文件 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 [root@pc1 test02]# c
阅读全文
posted @ 2023-09-12 23:53 小鲨鱼2018
阅读(115)
评论(0)
推荐(0)
linux shell 字符串变量 有双引号和无双引号的区别
摘要: 001、 [root@pc1 test02]# ls a.sh b.sh [root@pc1 test02]# cat a.sh ## 测试程序1 #!/bin/bash str1="ab_cd_ef" tmp1=$(echo $str1 | sed 's/_/\n/g') echo $tmp1 [
阅读全文
posted @ 2023-09-12 23:33 小鲨鱼2018
阅读(175)
评论(0)
推荐(0)
linux 中依据某列展开为多行
摘要: 001、 方法1 [root@pc1 test01]# ls a.txt test.sh [root@pc1 test01]# cat a.txt ## 测试数据, 依据最后一列展开为多行 chrY 2657879 2658063 CTCF 652 GM19239 chrY 2664424 2664
阅读全文
posted @ 2023-09-12 22:14 小鲨鱼2018
阅读(37)
评论(0)
推荐(0)
linux 中 awk命令获取数组的长度
摘要: 001、 [root@pc1 test02]# ls a.txt [root@pc1 test02]# cat a.txt ## 测试数据 01 02 03 04 05 06 07 08 09 10 ## 获取数组的长度 [root@pc1 test02]# awk 'BEGIN{ay["a"] =
阅读全文
posted @ 2023-09-12 21:58 小鲨鱼2018
阅读(429)
评论(0)
推荐(0)
linux 中删除文件的倒数第二列
摘要: 001、方法1 [root@pc1 test03]# ls a.txt [root@pc1 test03]# cat a.txt ## 测试数据 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
阅读全文
posted @ 2023-09-12 17:55 小鲨鱼2018
阅读(262)
评论(0)
推荐(0)
linux 中 删除文件的最后一列以及若干列
摘要: 001、 [root@pc1 test03]# ls a.txt [root@pc1 test03]# cat a.txt ## 测试数据 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
阅读全文
posted @ 2023-09-12 17:29 小鲨鱼2018
阅读(145)
评论(0)
推荐(0)
python中借助列表实现文本转置
摘要: 001、 [root@pc1 test01]# ls a.fa test.py [root@pc1 test01]# cat a.fa ## 测试文件 ATCC GGGC ATGG AAGC TTGG ATGC ATGG [root@pc1 test01]# cat test.py ## 转置程序
阅读全文
posted @ 2023-09-12 15:25 小鲨鱼2018
阅读(41)
评论(0)
推荐(0)
python中实现DNA序列一致性计算
摘要: 001、 [root@pc1 test01]# ls a.fa test.py [root@pc1 test01]# cat a.fa ## 测试fasta文件 >Rosalind_1 ATCCAGCT >Rosalind_2 GGGCAACT >Rosalind_3 ATGGATCT >Rosal
阅读全文
posted @ 2023-09-12 11:46 小鲨鱼2018
阅读(62)
评论(0)
推荐(0)
2023年9月11日
python中字符串内置函数find和index
摘要: 001、find >>> str1 = "xyabmnabkj" ## 测试字符串 >>> for i in enumerate(str1): ... print(i) ## 列出每个字符的索引 ... (0, 'x') (1, 'y') (2, 'a') (3, 'b') (4, 'm') (5,
阅读全文
posted @ 2023-09-11 23:26 小鲨鱼2018
阅读(87)
评论(0)
推荐(0)
上一页
1
···
93
94
95
96
97
98
99
100
101
···
408
下一页
公告