随笔分类 - linux shell
摘要:001、方法1(基本逻辑是先提取每组的第一行和第四行; 然后将没两行转换为1行;最后将第二行再减去第一行) [root@PC1 test2]# ls a.txt [root@PC1 test2]# cat a.txt ## 测试数据 2.699350 2.699359 2.699940 2.6999
阅读全文
摘要:001、点新建标签 002、 点击新建站点 003、 。
阅读全文
摘要:001、 Linux 中 如何判断每一行的数据都是相同的 [root@PC1 test2]# ls a.txt [root@PC1 test2]# cat a.txt ## 测试数据 aa bb cc aa bb cc aa bb cc aa kk cc aa bb cc aa bb cc [roo
阅读全文
摘要:001、直接拆分 [root@PC1 test2]# ls outcome.map [root@PC1 test2]# cat outcome.map ## 准备一个测试文件,依据第一列来拆分文件 1 snp1 0 55910 1 snp2 0 85204 1 snp3 0 122948 2 snp
阅读全文
摘要:在一些场景下,会遇到指定目录中出现大量的以数字命名的文件或者目录,如何实现批量删除: 001、 [root@PC1 test2]# ls ## 测试文件及目录,如何删除所有的 以数字命名的文件和目录 1 20 29 74 8 9 a.txt b.txt dir11 [root@PC1 test2]#
阅读全文
摘要:那会突然想到一个问题,如何每隔一段时间执行特定的程序。想到了如下的一种方法: 测试如下: 一个小问题,比如 每隔5秒统计一个特定文件的行数 001、 [b20223040323@admin1 test]$ ls false.gff pan.fna pan.fna.fai record.sh true
阅读全文
摘要:在Linux系统中: 0 表示标准输入; 1表示标准输出; 2表示标准错误输出; 2>&1 表示将标准错误输出重定向到标准输入; 举一个例子: a、不将标准错误输出 重定向到标准输入中。 [root@PC1 gffread-0.12.7.Linux_x86_64]# xxx ## 在终端随机输入一个
阅读全文
摘要:001、 cat DA.top0.05.tajimaD da_nonda.top0.1.fst > DA.top && awk 'pass==1 { count[$1,$2]++ } pass==2 { if(count[$1,$2]>1) print }' pass=1 DA.top pass=2
阅读全文
摘要:linux 中判断一列数据是否按照指定步长递增 001、 [root@pc1 test01]# ls a.txt b.txt [root@pc1 test01]# cat a.txt ## 测试数据, 正确递增 1 2 3 4 5 6 [root@pc1 test01]# cat b.txt ##
阅读全文
摘要:001、 (base) [b20223040323@admin1 x_test]$ ls ## 测试gff文件 GCF_000001405.40_GRCh38.p14_genomic.fna.gz GCF_000001405.40_GRCh38.p14_genomic.gff (base) [b20
阅读全文
摘要:001、奇怪的报错:' for reading (没有那个文件或目录)en file ` [sy20223040796@admin1 test]$ ls ## 测试文件及命令 test.bed test.sh [sy20223040796@admin1 test]$ cat test.bed ##
阅读全文
摘要:001、测试数据 [root@pc1 test02]# ls a.txt [root@pc1 test02]# cat a.txt 01 02 03 04 05 06 07 08 09 10 11 12 [root@pc1 test02]# cat -A a.txt ## 测试数据中包括什么也无、空
阅读全文
摘要:001、 centos8 中安装texinfo wget -c https://ftp.gnu.org/gnu/texinfo/texinfo-6.6.tar.gz 002、 [root@localhost software]# tar -xzvf texinfo-6.6.tar.gz [root@
阅读全文
摘要:001、问题 centos8 中出现 没有Fortan 编译器的报错 configure: error: No Fortran compiler found 002、解决方法 [root@localhost R-4.3.2]# yum install gcc-gfortran 003、测试效果 [r
阅读全文
摘要:001、 yum makecache的作用是将服务器上的软件包信息缓存到本地,以提高搜索和安装软件的速度。 002、 yum update:该命令用于更新系统中已安装的软件包到最新版本,但不会安装新的软件包或删除已安装的软件包。 003、 yum upgrade:该命令也用于更新系统中已安装的软件包
阅读全文
摘要:001、centos8 中yum安装软件出现如下报错 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist 002、系统 [
阅读全文
摘要:001、 以centos8.4为例 [root@localhost test01]# cat /etc/redhat-release ## 查看系统centos8.4 CentOS Linux release 8.4.2105 002、查看网络接口名称(网卡名称) [root@localhost t
阅读全文
摘要:001、打开一个测试文件, 在末行模式输入下面代码: vim a.txtaa bb root dd ROOt KK As rOOT DD Sd djjf ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ :map <F2> :echo "helle world!"<CR
阅读全文
摘要:001、系统 [root@PC1 home]# cat /etc/system-release ## rocky9 Rocky Linux release 9.3 (Blue Onyx) 002、调用lsb命令测试 [root@PC1 home]# lsb_release -a ## 无法调用 ba
阅读全文

浙公网安备 33010602011771号