随笔分类 - linux shell
摘要:001、 测试文件 (base) [b20223040323@admin2 test]$ du -ch *.fastq3.4G SRR33287865_1.fastq 002、gzip gzip -c SRR33287865_1.fastq Elapsed time: 238 003、pigz pi
阅读全文
摘要:001、 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试数据 aaaaaa bbbbbb cccccc dddddd [root@PC1 test]# cat -A a.txt ## 包含多种形式的空行 aaaaaa$ bbbbb
阅读全文
摘要:001、 [root@PC1 test]# ls a.txt b.txt [root@PC1 test]# cat a.txt aaaaaa bbbbbb cccccc dddddd eeeeee ffffff gggggg [root@PC1 test]# awk 'NF==0{if(prev==
阅读全文
摘要:001、 grep命令匹配单个的字母 [root@pc1 test]# ls a.txt [root@pc1 test]# cat a.txt ## 测试数据 >chr1 xxx CATCTCCCTTAGTGTTGTCCTGAATTGCTNCTACCAGTCTGCTCTGTGTCTTTCAGGGGG
阅读全文
摘要:001、 方法1 [root@PC1 test2]# ls a.txt [root@PC1 test2]# 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 28 29
阅读全文
摘要:001、 awk 实现 [root@PC1 test2]# ls a.txt [root@PC1 test2]# 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 test2]# awk '
阅读全文
摘要:001、使用let [root@PC1 test2]# ls [root@PC1 test2]# a=10 [root@PC1 test2]# echo $a 10 [root@PC1 test2]# let a=$a+5 ## 使用let对数值变量进行修改 [root@PC1 test2]# ec
阅读全文
摘要:001、 [root@pc1 test]# ls a.txt [root@pc1 test]# 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 28
阅读全文
摘要:001、提取偶数列 [root@pc1 test]# ls a.txt [root@pc1 test]# 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 2
阅读全文
摘要:001、 输出文本的最后几列 [root@pc1 test]# ls a.txt [root@pc1 test]# 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
阅读全文
摘要:001、 lfs quota -u s20223040682 /public/home/s20223040682
阅读全文
摘要:001、 [root@pc1 test]# basename /home/test/test/SRR21713860_1.fastq.gz ## 保留路径下的文件名 SRR21713860_1.fastq.gz [root@pc1 test]# basename /home/test/test/SR
阅读全文
摘要:001、 (base) [b20223040323@admin2 x_downloadagain]$ ls a.txt (base) [b20223040323@admin2 x_downloadagain]$ cat a.txt ## 测试数据 01 02 03 04 05 06 07 08 09
阅读全文
摘要:Linux 中检测gz压缩文件是否损坏。 001、 [s20233040742@admin2 x_test]$ ls a.sh b.sh [s20233040742@admin2 x_test]$ seq 10 | gzip > a.txt.gz [s20233040742@admin2 x_tes
阅读全文
摘要:001、 (base) [b20223040323@admin2 test]$ ls read.list SRR1770413_1.fastq.gz SRR1770413_2.fastq.gz (base) [b20223040323@admin2 test]$ head read.list ##
阅读全文
摘要:001、 [root@localhost test]# seq -w 12 01 02 03 04 05 06 07 08 09 10 11 12 [root@localhost test]# seq -w 12 | paste -d " " - - ## 指定列数输出 01 02 03 04 05
阅读全文
摘要:001、 [root@PC1 test]# ls ## 测试压缩文件 a.txt.gz [root@PC1 test]# gunzip -k a.txt.gz ## gzip版本需要高于1.5 [root@PC1 test]# ls a.txt a.txt.gz . 002、 [root@PC1 t
阅读全文
摘要:001、 [root@localhost test]# ls a.txt [root@localhost test]# cat a.txt ## 测试数据 0aa1 0AA2 03 04 05 06 07 08 09 10 1a1 12 [root@localhost test]# awk '{a
阅读全文
摘要:001、 [root@localhost test]# ls a.txt [root@localhost test]# cat a.txt ## 测试数据 22 abc44 88 32 ABC11 43 14 aBc44 86 [root@localhost test]# sed -n '/abc/
阅读全文
摘要:Linux 中 sed命令在通配符作为变量匹配时如何作为传统字符串 01、场景 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt KR24 43.5012 163133 aaak 34.3586 486550 KR.4 26.0377 2063
阅读全文

浙公网安备 33010602011771号