摘要: 001、 借助数组实现 a、无序输出 [root@pc1 test]# ls a.fa [root@pc1 test]# cat a.fa ## 测试fasta文件 >chr1 aattccgg ttcc >chr2 ttccc >chr3 tttc cct ## 统计脚本 [root@pc1 te 阅读全文
posted @ 2023-11-17 23:34 小鲨鱼2018 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 001、测试数据 [root@pc1 test]# ls a.txt [root@pc1 test]# cat a.txt ## 测试数据 >jcf7180003470556 2 7 >jcf7180003470556 3 8 >jcf7180003470552 4 9 6 >jcf71800034 阅读全文
posted @ 2023-11-17 23:16 小鲨鱼2018 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 001、Linux 中变量类型 01、系统变量:写入到系统配置文件中,启动终端则自动加载变量 02、shell变量:自定义临时变量 03、环境变量:通过使用export 作用与变量,使变量可以在进程间共享 env 可以显示所有的环境变量; set可以显示所有的变量; 测试如下: [root@pc1 阅读全文
posted @ 2023-11-17 13:11 小鲨鱼2018 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 001、测试(错误做法) (base) [root@pc1 test]# ls a.txt (base) [root@pc1 test]# cat a.txt ## 测试数据 1 2 3 4 5 6 7 8 9 10 (base) [root@pc1 test]# sed "s/5/$PWD/" a 阅读全文
posted @ 2023-11-17 12:51 小鲨鱼2018 阅读(292) 评论(0) 推荐(0) 编辑