摘要: 001、问题 ./rmblastn: /lib64/libz.so.1: version `ZLIB_1.2.9' not found (required by 002、查找库中包含的版本 (base) [root@pc1 bin]# strings /lib64/libz.so.1 | grep 阅读全文
posted @ 2023-11-05 20:35 小鲨鱼2018 阅读(1041) 评论(0) 推荐(1) 编辑
摘要: linux 中shift命令应用与函数内部,调用一次,表示参数左移一位;$#表示shell参数的个数,调用shift一次, $#减少1. 分别处理每个参数,移出去的参数不再可用; 举例: 001、example 1 [root@pc1 test2]# ls a.sh [root@pc1 test2] 阅读全文
posted @ 2023-11-05 16:57 小鲨鱼2018 阅读(578) 评论(0) 推荐(0) 编辑
摘要: 001、 方法1 [root@pc1 test]# ls test.sh [root@pc1 test]# cat test.sh ## 测试程序 #!/bin/bash function join_by { ## 定义函数 local IFS="$1" ## IFS定义输入分隔符, 其中local 阅读全文
posted @ 2023-11-05 16:35 小鲨鱼2018 阅读(89) 评论(0) 推荐(0) 编辑
摘要: linux 中 local为一个关键字,用于限制变量的作用范围(作用域),通常应用在函数的内部. 举例如下: 001、在函数内部定义变量, 不使用关键字local [root@pc1 test2]# ls a.sh [root@pc1 test2]# cat a.sh ## 测试函数 #/bin/b 阅读全文
posted @ 2023-11-05 16:06 小鲨鱼2018 阅读(1135) 评论(0) 推荐(0) 编辑
摘要: 001、 创建数组 a、方法1 [root@pc1 test01]# ay1=(100 200 "abc" "xyz") ## 创建数组 b、方法2 [root@pc1 test01]# ay2[0]=100 [root@pc1 test01]# ay2[1]=200 [root@pc1 test0 阅读全文
posted @ 2023-11-05 10:40 小鲨鱼2018 阅读(403) 评论(0) 推荐(0) 编辑