摘要: 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) 编辑
摘要: 001、 [b20223040323@admin1 test2]$ ls test.sh [b20223040323@admin1 test2]$ cat test.sh ## 测试脚本 #!/bin/bash a="abc" b="abc" if [ $a == $b ] then echo "i 阅读全文
posted @ 2022-10-27 18:51 小鲨鱼2018 阅读(262) 评论(0) 推荐(0) 编辑