上一页 1 ··· 91 92 93 94 95 96 97 98 99 ··· 407 下一页
摘要: 001、 ps -aux | grep "fastq-dump" 阅读全文
posted @ 2023-09-21 16:03 小鲨鱼2018 阅读(51) 评论(0) 推荐(0)
摘要: 001、 [root@pc1 test2]# ls test.sh [root@pc1 test2]# cat test.sh ## 测试程序 #!/bin/bash seq 10 > a.txt xxxxxx && echo 20 done ; rm a.txt [root@pc1 test2]# 阅读全文
posted @ 2023-09-21 11:06 小鲨鱼2018 阅读(111) 评论(0) 推荐(0)
摘要: 001、 [root@pc1 test2]# ls [root@pc1 test2]# str1="ab.cd_kk.mn_jjy" ## 测试字符串 [root@pc1 test2]# echo ${str1%%.*} ## 从左侧开始,删除.号右侧所有的内容 ab [root@pc1 test2 阅读全文
posted @ 2023-09-20 17:58 小鲨鱼2018 阅读(242) 评论(0) 推荐(0)
摘要: 001、测试文件(实现仅提取==1185== 和 其他不包含==数字==的行) [root@pc1 test2]# ls a.txt [root@pc1 test2]# cat a.txt ## 测试文件 ==1185== abcadoiafa ==1120== asvgaoj fajsdfja = 阅读全文
posted @ 2023-09-20 11:59 小鲨鱼2018 阅读(89) 评论(0) 推荐(0)
摘要: [root@pc1 test2]# ls ##测试数据 a.txt b.csv c.ped test_dir [root@pc1 test2]# ls test_dir/ [root@pc1 test2]# find ./ -name "*.txt" -o -name "*.ped" -exec c 阅读全文
posted @ 2023-09-20 08:53 小鲨鱼2018 阅读(770) 评论(0) 推荐(0)
摘要: 001、 [root@pc1 test2]# ls [root@pc1 test2]# basename /home/test2/a.txt ## 仅仅获取文件 a.txt [root@pc1 test2]# dirname /home/test2/a.txt ## 仅仅获取路径 /home/tes 阅读全文
posted @ 2023-09-20 08:30 小鲨鱼2018 阅读(19) 评论(0) 推荐(0)
摘要: 001、下载 官网:http://www.usadellab.org/cms/?page=trimmomatic 下载0.39版本: 002、上传至linux 中,然后解压 [root@pc1 software]# ls ## 列出安装包 Trimmomatic-0.39.zip [root@pc1 阅读全文
posted @ 2023-09-19 22:22 小鲨鱼2018 阅读(2114) 评论(0) 推荐(0)
摘要: 001、 删除最后一列 [root@pc1 test4]# ls a.txt [root@pc1 test4]# 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 阅读全文
posted @ 2023-09-19 21:36 小鲨鱼2018 阅读(2182) 评论(0) 推荐(0)
摘要: 001、 方法1 [root@pc1 test2]# ls a.txt [root@pc1 test2]# cat a.txt ## 测试文件 /home/test2/a.txt [root@pc1 test2]# sed -r 's/(\/.*\/).*/\1/' a.txt ## 仅保留路径 / 阅读全文
posted @ 2023-09-19 20:22 小鲨鱼2018 阅读(127) 评论(0) 推荐(0)
摘要: 对目录进行粘滞位设置,实现用户只能删除自己的文件,而不能删除别人的文件。 文件能否被删除并不取决于自身的权限,而是看其所在目录是否有写入权限。 001、 [root@pc1 home]# ls liujiaxin01 liujiaxin02 [root@pc1 home]# whoami ## 当前 阅读全文
posted @ 2023-09-18 21:53 小鲨鱼2018 阅读(70) 评论(0) 推荐(0)
上一页 1 ··· 91 92 93 94 95 96 97 98 99 ··· 407 下一页