随笔分类 - linux shell
摘要:1、 [root@rhel7pc1 test]# ls a.txt [root@rhel7pc1 test]# cat a.txt 1 k d f 2 x c g 3 z c b 4 e w e 5 z c x 6 e d g 7 i j e [root@rhel7pc1 test]# grep -
阅读全文
摘要:1、 [root@rhel7pc1 test]# ls a.txt [root@rhel7pc1 test]# cat a.txt 1 k d f 2 x c g 3 z c b 4 e w e 5 z c f 6 e d g [root@rhel7pc1 test]# sed -n '/x/{n;
阅读全文
摘要:1、测试数据 [root@rhel7pc1 test]# ls a.txt [root@rhel7pc1 test]# cat a.txt ## 测试数据 1 k d f 2 x c g 3 z c b 4 e w e 5 z c f 6 e d g 2、删除匹配行及其下一行 [root@rhel7
阅读全文
摘要:1、测试数据 [root@rhel7pc1 test]# ls test.txt [root@rhel7pc1 test]# cat test.txt e 5435.1 f d f 1 j k d f e u d j 1 j [root@rhel7pc1 test]# sed -n l test.t
阅读全文
摘要:1、测试数据 [root@centos7 test]# ls test.txt [root@centos7 test]# cat test.txt ## 测试数据 y j k j k h d j r [root@centos7 test]# sed -n l test.txt y\tj k$ \t\
阅读全文
摘要:1、测试数据 [root@centos7 test]# ls test.txt [root@centos7 test]# cat test.txt y j k j k h d j r [root@centos7 test]# sed -n l test.txt ## 测试数据 y\t\tj k$ j
阅读全文
摘要:1、测试数据 [root@centos7 test]# ls test.txt [root@centos7 test]# cat test.txt ## 测试数据 d j m d j y i [root@centos7 test]# sed -n l test.txt ## 查看分割符 d j m$
阅读全文
摘要:1、测试数据 [root@centos7 test]# ls test.txt [root@centos7 test]# cat test.txt ## 测试数据 k m w g h g u y [root@centos7 test]# sed -n l test.txt ## 查看tab键 k\t
阅读全文
摘要:1、 创建规律性计划任务: crontab -e 查看规律性计划任务:crontab -l 删除规律性计划任务:crontab -r 时间格式:分 时 月 年 星期 命令 实例: 1、创建规律性计划任务服务 [root@centos7 test]# crontab -e ## 输入该命令之后进入编辑
阅读全文
摘要:1、问题 paste异常 [root@centos7 test]# ls test.ped test.txt [root@centos7 test]# cat test.txt 10 YH 1 GS 11 YH [root@centos7 test]# cat test.ped 10 10 0 0
阅读全文
摘要:1、创建计划任务服务 [root@centos7pc1 test2]# ls [root@centos7pc1 test2]# date Wed Apr 6 17:16:12 CST 2022 [root@centos7pc1 test2]# at now+2 min ## 设置任务时间, 2分钟后
阅读全文
摘要:1、 [root@centos7pc1 test2]# ls test.sh [root@centos7pc1 test2]# cat test.sh ## 测试脚本 #!/bin/bash read -p "please input an number or an letter: " KEY ca
阅读全文
摘要:1、 [root@centos7pc1 test2]# ls test.sh [root@centos7pc1 test2]# cat test.sh ## 脚本 #!/bin/bash for i in `seq 9` do for j in `seq 9` do echo "$i * $j" |
阅读全文
摘要:1、 [root@rhel7pc1 test]# echo "xxx" xxx [root@rhel7pc1 test]# echo -n "xxx" ## -n选项实现不换行输出 xxx[root@rhel7pc1 test]#
阅读全文
摘要:1、 [root@rhel7pc1 test]# ls test.sh [root@rhel7pc1 test]# cat test.sh #!/bin/bash NUM=10 while [ $NUM -gt 0 ] ## 循环条件 do echo "$NUM xxxx" let NUM-- ##
阅读全文
摘要:1、问题 configure: error: select TLS backend(s) or disable TLS with --without-ssl. 2、解决方法,没有问题 [root@rhel7pc1 curl-7.82.0]# ./configure --with-wolfssl 参考
阅读全文
摘要:1、下载地址:https://curl.se/download/ 参考:https://blog.csdn.net/wangpanbaoding/article/details/79104609 1)下载curl包(可以在这个网站上找最新的版本 http://curl.haxx.se/downloa
阅读全文
摘要:1、问题 root@ubuntu01:/home/software/PopLDdecay# ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environm
阅读全文
摘要:1、问题 [root@rhelpc1 software]# git clone https://github.com/BGI-shenzhen/PopLDdecay.git Cloning into 'PopLDdecay'... fatal: unable to access 'https://g
阅读全文
摘要:1、问题安装git 过程中 make出现问题 cache.h:40:18: fatal error: zlib.h: No such file or directory #include <zlib.h> 2、解决方法 [root@rhelpc1 git-2.9.5]# yum install zl
阅读全文

浙公网安备 33010602011771号