随笔分类 -  linux shell

上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 78 下一页
摘要:001、批量提取列,根据索引index.txt文件批量提取2、4、8、9列 [root@pc1 test2]# ls a.txt index.txt [root@pc1 test2]# cat a.txt ## 测试文件 001 002 003 004 005 006 007 008 009 010 阅读全文
posted @ 2023-10-12 12:16 小鲨鱼2018 阅读(353) 评论(0) 推荐(0)
摘要:001、 [root@pc1 test2]# ls a.txt [root@pc1 test2]# cat a.txt 01 02 1 03 04 2 05 06 3 07 08 4 09 10 5 11 12 6 13 14 7 15 16 8 17 18 9 19 20 10 21 22 11 阅读全文
posted @ 2023-10-12 11:50 小鲨鱼2018 阅读(39) 评论(0) 推荐(0)
摘要:[root@pc1 test1]# ls file.txt [root@pc1 test1]# cat file.txt ## 测试文件 0 01 02 03 04 0 05 06 07 08 0 09 10 11 12 1 13 14 15 16 1 17 18 19 20 2 77 33 22 阅读全文
posted @ 2023-10-12 10:37 小鲨鱼2018 阅读(52) 评论(0) 推荐(0)
摘要:001、 [root@pc1 test1]# ls a.txt [root@pc1 test1]# a=4 ## 定义变量a [root@pc1 test1]# cat a.txt 1 [root@pc1 test1]# awk '{for(i = 1; i <= "'$a'"; i++) prin 阅读全文
posted @ 2023-10-12 10:15 小鲨鱼2018 阅读(163) 评论(0) 推荐(0)
摘要:001、方法1 ## step1: awk 'NR % 4 == 1' batch9.fastq | sed 'N; s/\n/\t/; s/\//\t/g' | awk '{if($1 == $3 && $2 != $4) {print (NR - 1) * 8 + 1, NR * 8}}' > 阅读全文
posted @ 2023-10-12 01:56 小鲨鱼2018 阅读(53) 评论(0) 推荐(0)
摘要:001、 [root@pc1 test2]# ls index.txt [root@pc1 test2]# cat index.txt ## 测试的一列数字 2 3 4 8 9 11 [root@pc1 test2]# awk '{if(NR == 1) {a = $0 - 0 - 1; for ( 阅读全文
posted @ 2023-10-11 23:16 小鲨鱼2018 阅读(70) 评论(0) 推荐(0)
摘要:001、测试数据 [root@pc1 test1]# ls a.txt index.txt [root@pc1 test1]# cat a.txt ## 测试文件 01 02 1 03 04 2 05 06 3 07 08 4 09 10 5 11 12 6 13 14 7 15 16 8 17 1 阅读全文
posted @ 2023-10-11 22:18 小鲨鱼2018 阅读(236) 评论(0) 推荐(0)
摘要:001、问题: ./a.out: error while loading shared libraries: libgsl.so.25: cannot open shared object file: No such file or directory 002、解决方法 [root@pc1 test 阅读全文
posted @ 2023-10-10 22:53 小鲨鱼2018 阅读(361) 评论(0) 推荐(0)
摘要:001、 为什么gnu具有这么大的推动作用 ? 阅读全文
posted @ 2023-10-10 19:34 小鲨鱼2018 阅读(31) 评论(0) 推荐(0)
摘要:001、 configure: 配置环境? ./configure 是用来检测你的安装平台的目标特征的。比如它会检测你是不是有CC或GCC,它是个shell脚本,另外,./configure是源代码安装的第一步,主要的作用是对即将安装的软件进行配置,检查当前的环境是否满足要安装软件的依赖关系。 00 阅读全文
posted @ 2023-10-10 18:05 小鲨鱼2018 阅读(376) 评论(0) 推荐(0)
摘要:001、 首先产生的是gcc 对单个源文件的编译 首先先来了解一下gcc,gcc是GNU Compiler Collection(就是GNU编译器套件),也可以简单认为是编译器,它可以编译很多种编程语言(包括C、C++、Objective-C、Fortran、Java等等)。当我们的程序只有一个源文 阅读全文
posted @ 2023-10-10 16:39 小鲨鱼2018 阅读(531) 评论(0) 推荐(0)
摘要:001、 'gmake'特指GNU make。 'make'是指系统默认的make实现;在大多数Linux发行版中,这是GNU make,但是在其他unix中,它可以指代make的某些其他实现,例如BSD make或各种商业unix的make实现。 GNU make接受的语言是传统make实用程序支 阅读全文
posted @ 2023-10-10 16:15 小鲨鱼2018 阅读(1099) 评论(0) 推荐(1)
摘要:001、问题:Failed to find "GL/gl.h" in 002、解决方法 [root@pc1 cmake-3.27.7-build]# yum install mesa-lib* 。 参考:https://www.jianshu.com/p/5eeb3dd51c08 阅读全文
posted @ 2023-10-10 15:47 小鲨鱼2018 阅读(651) 评论(0) 推荐(0)
摘要:001、从左侧删除,# 和 *. a、从左侧删除单个 [root@pc1 test01]# var=GCF_000001735.4_TAIR10.1_genomic.fna ## 测试字符串 [root@pc1 test01]# echo ${var#*.} ## 从左侧删除第一个.后之前的,使用的 阅读全文
posted @ 2023-10-10 11:21 小鲨鱼2018 阅读(38) 评论(0) 推荐(0)
摘要:001、 [root@pc1 test01]# ls a.txt [root@pc1 test01]# cat a.txt ## 测试数据 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 阅读全文
posted @ 2023-10-10 11:04 小鲨鱼2018 阅读(466) 评论(0) 推荐(0)
摘要:001、 [root@pc1 test01]# ls a.txt [root@pc1 test01]# cat a.txt ## 测试数据 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 阅读全文
posted @ 2023-10-10 10:55 小鲨鱼2018 阅读(352) 评论(0) 推荐(0)
摘要:001、方法1 利用cut [root@pc1 test01]# ls a.txt [root@pc1 test01]# cat a.txt ## 测试数据 001.002.003.004.005 006.007.008.009.010 011.012.013.014.015 016.017.018 阅读全文
posted @ 2023-10-10 10:29 小鲨鱼2018 阅读(253) 评论(0) 推荐(0)
摘要:. switch 构造是 Linux bash 脚本提供的另一个强大功能。(c语言?) 它可以用于需要嵌套条件的地方,但不希望使用复杂的 if-else elif 链。 001、 阅读全文
posted @ 2023-10-08 23:51 小鲨鱼2018 阅读(88) 评论(0) 推荐(0)
摘要:001、 [root@pc1 test01]# ls a.sh [root@pc1 test01]# cat a.sh ## 测试脚本 #!/bin/bash : " ## 冒号和双引号之间有一个空格(也可以是单引号) xxxxxxx yyyyyyyyyyy ## 注释内容 zzzzzzzz " ( 阅读全文
posted @ 2023-10-08 23:04 小鲨鱼2018 阅读(681) 评论(0) 推荐(0)
摘要:001、 -s file:文件存在而且文件不为空,则为真,否则为假 (base) [root@pc1 test01]# ls a.txt b.txt (base) [root@pc1 test01]# ll -h ## 两个侧式文件,a.txt不为空,b.txt则为空 total 4.0K -rw- 阅读全文
posted @ 2023-10-06 19:44 小鲨鱼2018 阅读(1155) 评论(0) 推荐(0)

上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 78 下一页