01 2024 档案
摘要:001、测试1 [root@pc1 test1]# ls [root@pc1 test1]# mkdir a/b/c ## mkdir创建连续目录,失败 mkdir: cannot create directory ‘a/b/c’: No such file or directory [root@p
阅读全文
摘要:001、输出首次出现的项 [root@pc1 test1]# ls test.map [root@pc1 test1]# cat test.map ## 测试数据 1 55910 1 85204 1 122948 2 167127 2 176079 2 361433 3 144010 3 19991
阅读全文
摘要:001、 输出最大项 (base) [b20223040323@admin1 test]$ ls a.txt (base) [b20223040323@admin1 test]$ cat a.txt ## 测试数据 a 88 a 76 b 88 c 10 b 777 c 200 a 87 c 150
阅读全文
摘要:001、判断元素存在于数组中 (base) [b20223040323@admin1 test]$ ls a.txt (base) [b20223040323@admin1 test]$ cat a.txt ## 测试数据 a 88 a 76 b 88 a 876 b 25 a 66 ## 判断元素
阅读全文
摘要:001、 (base) [b20223040323@admin1 test]$ ls test.fa (base) [b20223040323@admin1 test]$ cat test.fa ### 一个测试文件 >jcf7180004256566_1 GATGCATATTACGTTCTACGT
阅读全文
摘要:001、slurm系统中用于查看作业的详细信息 a、查看所有的作业信息:scontrol show jobs b、根据作业的ID查看任务的详细信息:scontrol show job 568026 其中 568026为作业ID, 可以使用squeue命令查询 。
阅读全文
摘要:解决方案1 001、问题 gatk标记重复报错 a、使用程序如下: #!/bin/bash #SBATCH -J ERR2309122 #SBATCH -p Cnode #SBATCH -o %j.ERR2309122.result #SBATCH -e %j.ERR2309122.error #S
阅读全文
摘要:001、 [root@PC1 test1]# ls ## 准备两个测试文件 a.sh b.sh [root@PC1 test1]# cat a.sh ## a文件 #!/bin/bash echo $* [root@PC1 test1]# cat b.sh ## b文件 #!/bin/bash se
阅读全文
摘要:001、两者都可以表示shell脚本的所有参数,两者没有差异(不管是否增加双引号) 举例: a、不加双引号 [root@PC1 test1]# ls ## 准备了两个测试脚本 a.sh b.sh [root@PC1 test1]# cat a.sh ## a.sh的内容如下 #!/bin/bash
阅读全文
摘要:001、sra数据转换fastq数据报错如下: 002、报错产生的原因“: 没有网络连接。 003、验证 a、无网络连接 [root@PC1 test1]# ls SRR11076280 [root@PC1 test1]# ping -c 3 www.baidu.com ## 检测网络连通性 pin
阅读全文
摘要:001、问题 逻辑G610键盘 win + i; win + e等快捷方式突然不起作用 002、解决方法 把键盘的游戏模式关掉,如下图(把游戏模式的灯按灭即可恢复): 。
阅读全文
摘要:方法1, 从外源库中安装 001、系统 [root@PC1 home]# cat /etc/redhat-release ## 系统,centos 7.6 CentOS Linux release 7.6.1810 (Core) 002、测试R [root@PC1 home]# R ## 测试R b
阅读全文
摘要:001、 [root@pc1 test02]# ls a.txt [root@pc1 test02]# cat a.txt ## 准备一个测试数据 aa aa aa bb bb cc cc cc cc dd dd dd [root@pc1 test02]# awk '{ay[$1]++; print
阅读全文
摘要:001、测试文件 [root@pc1 test]# ls a.txt [root@pc1 test]# ll -h ## 测试文件 total 113M -rw-r--r--. 1 root root 113M Jan 9 12:03 a.txt 002、压缩文件(不保留源文件) [root@pc1
阅读全文
摘要:001、生成测试文件 [root@pc1 test]# ls [root@pc1 test]# seq -f %010g 10000000 > a.txt ## 测试文件 [root@pc1 test]# ll -h total 113M -rw-r--r--. 1 root root 113M J
阅读全文
摘要:001、测试数据 [root@pc1 test1]# cat a.txt ## 测试数据 ddf gge fff 99944 errorfff 8888 adfailee 32434 error kkk iiii ff2333 ERROR JJJ kkk FAiL jjj 002、忽略大小写;方法1
阅读全文
摘要:001、安装vcftools; ./configure报错如下: No package 'zlib' found 002、解决方法: yum -y install zlib-devel zlib 003、./configure 测试效果 ./configure ## 测试通过 。
阅读全文
摘要:两者都适用在linux 中进行文件查找。 001、find 01、通过对目录、子目录遍历进行查找 02、支持各种条件,比如文件名、类型 -type、大小-size、所有者-user、权限-perm、时间-mtime等 03、结合-exec,支持后续的操作,比如删除、查看、压缩,重命名等 002、lo
阅读全文
摘要:linux 中 []和[[]]都支持逻辑判断,后者比前者功能更强大,比较符合通用的编程规则。 001、举一例子 [root@pc1 test1]# a=10 [root@pc1 test1]# b=200 [root@pc1 test1]# if [ $a == 10 ]; then echo "a
阅读全文