随笔分类 - linux shell
摘要:001、问题 002、解决方法: 下载安装包: https://ctan.org/tex-archive/support/epstopdf 003、 unzip epstopdf.zip cd epstopdf/ cp epstopdf.pl epstopdf.pl_backup mv epstop
阅读全文
摘要:001、问题 (base) [root@PC1 ~]# epstopdf --version bash: epstopdf: command not found... (base) [root@PC1 ~]# epstopdf bash: epstopdf: command not found...
阅读全文
摘要:001、 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试数据 adf.3 ss.rr.fff.43 aa.rr.ee.44.ee.56 [root@PC1 test]# sed 's/\S[^.]\+$//' a.txt ## 匹
阅读全文
摘要:001、 [sy20213040737@admin2 zzz_test]$ ls a.txt [sy20213040737@admin2 zzz_test]$ cat a.txt aa bb cc [sy20213040737@admin2 zzz_test]$ cat a.txt | xargs
阅读全文
摘要:001、问题 基于setfacl 对特定用户开放读写权限失败 setfacl -m u:liujiaxin02:r-x $HOME; 开放了读写的权限,但是仍然显示无法读取; 002、问题原因及解决方法 开放权限的用户本人的家目录没有开放读和执行的权限,要想setfacl生效,首先开放权限用户本身应
阅读全文
摘要:001、 (base) [root@PC1 test]# lstest.sh(base) [root@PC1 test]# cat test.sh#!/bin/bash # 启动三个后台进程 echo hello world &sleep 20 &seq 10000000000 > a.txt &
阅读全文
摘要:001、 sort命令的-g选项用于按照通用数值进行排序。
阅读全文
摘要:001、问题: No match for argument: GConf2 Error: Unable to find a match: GConf2 002、解决方法: dnf install epel-release -y
阅读全文
摘要:001、Linux 中 求每一行数据的和 [b20223040323@admin2 test]$ ls a.txt [b20223040323@admin2 test]$ cat a.txt ## 测试数据 1 2 3 4 5 6 7 8 9 10 11 12 [b20223040323@admin
阅读全文
摘要:001、 [root@localhost test]# ls a.txt [root@localhost test]# cat a.txt ## 测试数据 00_3 8834 1b_kk ffaa 55_f3_34 8834 aa_bb_kk_44 44aa [root@localhost test
阅读全文
摘要:001、linux shell中如何实现矩阵文件按照某一列的指定顺序排序 [s20213040583@admin2 test]$ ls a.txt idx.txt [s20213040583@admin2 test]$ cat a.txt ## 测试数据 d 100 888 c 666 999 a
阅读全文
摘要:001、Linux 中 如何区分文本使用空格还是制表符分割 [root@PC1 test]# ls a.txt b.txt [root@PC1 test]# cat a.txt ## 测试数据 空格分割 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16
阅读全文
摘要:001、实例如下: (base) [b20223040323@admin2 test]$ ls a.txt (base) [b20223040323@admin2 test]$ cat a.txt ## 测试数据, 第一列又两类重复 aa 11 bb 89 aa 77 kk 66 aa 88 kk
阅读全文
摘要:001、删除第9个字段gene_id前边的所有内容 [b20223040323@admin2 test]$ ls a.txt [b20223040323@admin2 test]$ cat a.txt ## 测试数据 NC_089035.1 Gnomon transcript 7328 15219
阅读全文
摘要:001、 [root@PC1 test]# echo ${array1[*]} 100 aaa xxxYYY [root@PC1 test]# echo ${array1[@]} 100 aaa xxxYYY [root@PC1 test]# echo ${!array1[@]} 0 1 2 [ro
阅读全文
摘要:001、 [root@PC1 test]# ls a.sh [root@PC1 test]# cat a.sh #!/bin/bash echo hello world [root@PC1 test]# sh -c bash a.sh ## 更新了系统环境变量? (base) [root@PC1 t
阅读全文
摘要:001、 [root@PC1 test2]# ls a.txt [root@PC1 test2]# cat a.txt ## 测试数据 W-URI-20 W-HYB-21 aaa fff-ddd-eee ZOM-1 ZOM-9 AWA-A-1 AWA-A-6 [root@PC1 test2]# se
阅读全文
摘要:Linux 中sed命令的整行替换. 001、基本用法 [root@PC1 test2]# ls a.txt [root@PC1 test2]# cat a.txt ## 测试文件 a UU i a UU i b q j c q y [root@PC1 test2]# sed '/b/ s/.*/Q
阅读全文
摘要:001、 Linuxbash和source命令的区别在于,当你用bash命令执行脚本时,它告诉Linux内核创建一个新的Bash进程来读取和执行脚本,将输出复制到原先的shell进程中,并显示下来. 然而source命令是一个外置的shell,它读取和评估当前shell进程中的文件。为此,脚本所做的
阅读全文
摘要:001、关联数组的声明 declare -A array1 002、关联数组的赋值 [root@localhost test]# declare -A array1 [root@localhost test]# array1["a"]=1000 [root@localhost test]# arra
阅读全文

浙公网安备 33010602011771号