上一页 1 ··· 118 119 120 121 122 123 124 125 126 ··· 367 下一页
摘要: 001、 [root@pc1 test]# ls a.txt [root@pc1 test]# cat a.txt ## 测试数据 1 2 3 4 5 6 [root@pc1 test]# sed '3a xx' a.txt ## 在第3行后面插入内容 1 2 3 xx 4 5 6 阅读全文
posted @ 2022-10-29 01:19 小鲨鱼2018 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@pc1 test]# ls a.txt test.py [root@pc1 test]# cat a.txt 1 2 3 4 5 [root@pc1 test]# cat test.py #!/usr/bin/python in_file = open("a.txt", "r" 阅读全文
posted @ 2022-10-29 00:40 小鲨鱼2018 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 001、 >>> list1 ## 测试列表 [1, 2, 3, 4, 5] >>> list1.insert(-1,"xxx") ## 在列表最后以为之前插入数据 >>> list1 [1, 2, 3, 4, 'xxx', 5] >>> list1.insert(-2,"kkk") ## 在列表最 阅读全文
posted @ 2022-10-28 18:24 小鲨鱼2018 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@pc1 test]# ls a.txt b.txt c.txt [root@pc1 test]# ll -h ## 测试文件 total 4.0K -rw-r--r--. 1 root root 0 Oct 28 16:36 a.txt -rw-r--r--. 1 root r 阅读全文
posted @ 2022-10-28 16:43 小鲨鱼2018 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@pc1 test]# ls a.txt A.TXT b.txt B.TXT [root@pc1 test]# find ./ -name "a.txt" ## 查找a.txt ./a.txt [root@pc1 test]# ls a.txt A.TXT b.txt B.TXT 阅读全文
posted @ 2022-10-28 16:32 小鲨鱼2018 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@pc1 test]# ls a.txt b.txt c.txt d.txt e.txt m.map n.map x.csv y.csv [root@pc1 test]# find ./ -name "*.map" ## 查找当前目录中所有的map文件 ./m.map ./n.m 阅读全文
posted @ 2022-10-28 16:26 小鲨鱼2018 阅读(626) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@pc1 test]# ls ## 测试文件 a.txt b.txt c.txt d.txt e.txt [root@pc1 test]# ll -h total 250M -rw-r--r--. 1 root root 100M Oct 28 16:06 a.txt -rw-r 阅读全文
posted @ 2022-10-28 16:15 小鲨鱼2018 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@pc1 test]# cat a.fa >chr1 aatt cc >chr2 ttgg ccgg >chr3 aa [root@pc1 test]# cat test.py #!/usr/bin/python in_file = open("a.fa", "r") dict1 阅读全文
posted @ 2022-10-27 23:22 小鲨鱼2018 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@pc1 test]# ls a.fa [root@pc1 test]# cat a.fa ## 测试fasta文件 >chr1 aatt cc >chr2 ttgg ccgg >chr3 aa [root@pc1 test]# awk '{if($0 ~ /^>/) {prin 阅读全文
posted @ 2022-10-27 23:11 小鲨鱼2018 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 001、统计字符数(包括空格和换行符) [root@pc1 test]# ls a.txt [root@pc1 test]# cat a.txt ## 测试文件 ad t d [root@pc1 test]# wc -c a.txt ## wc -c命令统计字符数,包含换行符和空格 7 a.txt 阅读全文
posted @ 2022-10-27 22:53 小鲨鱼2018 阅读(922) 评论(0) 推荐(0) 编辑
上一页 1 ··· 118 119 120 121 122 123 124 125 126 ··· 367 下一页