随笔分类 - linux shell
摘要:001、 [root@PC1 test]# echo a | awk 'function my_length(str) {return length(str)}; {text = "Hello"; print "Length of text:", my_length(text)}' Length o
阅读全文
摘要:Linux 中 如何实现数字每个三个数字增加一个逗号 001、 [s20223040682@admin1 test]$ ls a.txt [s20223040682@admin1 test]$ cat a.txt 23453245533 9706634552 356662212 34566 [s20
阅读全文
摘要:001、 (base) [s20213040583@admin1 test]$ ls a.txt (base) [s20213040583@admin1 test]$ cat a.txt ## 测试数据 01 02 03 04 ATCkkCAA GGAaattTGccggCCAA ATCCAA05
阅读全文
摘要:001、 (base) [s20213040583@admin1 test]$ ls a.txt (base) [s20213040583@admin1 test]$ cat a.txt ## 测试数据 01 02 03 04 05 06aa 0aa7 08 09 10 1aa1 12 13 14d
阅读全文
摘要:001、 通常做法 [root@localhost test]# time seq 10 > a.txt 2> xxx ## 完全追加至xxx real 0m0.002s user 0m0.000s sys 0m0.002s [root@localhost test]# ls a.txt xxx [
阅读全文
摘要:001、 [root@localhost test]# ls a.txt [root@localhost test]# cat a.txt ## 测试数据 j003_mappingrate.txt KRA6 97.79% wild_mappingrate.txt KR.6 98.53% j004_m
阅读全文
摘要:001、 [s20223040682@admin2 test]$ echo hollo@world | fold -w 1 h o l l o @ w o r l d [s20223040682@admin2 test]$ echo hollo@world | fold -w 2 ho ll o@
阅读全文
摘要:001、 (base) [root@PC1 test]# ls a.txt idx.txt (base) [root@PC1 test]# cat a.txt ## 测试数据 01 02 03 04 05 06a 07 08 09 10 11 12 13 14b 15 16 17 18 19 20
阅读全文
摘要:001、 在Linux系统中,strings命令是一个强大且实用的工具,主要用于从二进制文件中提取可打印的字符序列。这些字符序列通常包括变量名、函数名、注释或任何嵌入的文本信息,对于文件分析和调试具有重要意义 [root@PC1 test]# ls a.txt [root@PC1 test]# ca
阅读全文
摘要:Linux中动态链接库环境变量:LD_LIBRARY_PATH 001、 [root@PC1 test]# echo $LD_LIBRARY_PATH 002、 (base) [b20223040323@admin2 test]$ echo $LD_LIBRARY_PATH /public/soft
阅读全文
摘要:001、ldd命令 [root@PC1 src]# ldd /bin/ls linux-vdso.so.1 (0x00007ffea61ad000) libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f57e03d4000) libcap.so.2
阅读全文
摘要:001、Linux中ld命令是链接命令,其作用是将链接文件(经过编译和汇编后的机器码文件)和库文件整合为可执行文件或者是库文件。 ld(Link eDitor)命令是二进制工具集GNU Binutils的一员,是GNU链接器,用于将目标文件与库链接为可执行文件或库文件。 002、 (base) [r
阅读全文
摘要:001、查看系统 [root@PC1 ~]# cat /etc/redhat-release Rocky Linux release 9.4 (Blue Onyx) 002、查看是否有可用的安装包 [root@PC1 ~]# yum list | grep "openblas" ## 没有可用的op
阅读全文
摘要:001、Linux中shell变量的截取 [root@PC1 test]# var1=",xxx,yyy,zzz" [root@PC1 test]# echo $var1 ,xxx,yyy,zzz [root@PC1 test]# var1=${var1:1} ## 变量的截取 [root@PC1
阅读全文
摘要:001、配置报错如下: checking whether PCRE support suffices... yes checking for curl-config... /root/anaconda3/bin/curl-config ## 用的是conda中的cure checking libcu
阅读全文
摘要:000、pcre是什么? perl正则表达式函数库 PCRE(Perl Compatible Regular Expressions)是一个用C语言编写的正则表达式函数库,由菲利普·海泽(Philip Hazel)编写。 001、问题 configure: error: PCRE2 librar
阅读全文
摘要:01、基础用法,获取路径中的最后一个字段 [root@PC1 test]# echo $PWD /home/test [root@PC1 test]# basename $PWD ## 基本用法, 获取路径的最后一个字段 test [root@PC1 test]# basename /home/xx
阅读全文
摘要:001、dir列出指定目录下的所有文件 [root@localhost test]# ls 1.txt 3.txt 5.txt 8.txt a.txt result.txt [root@localhost test]# dir ## 列出当前目录下的所有文件 1.txt 3.txt 5.txt 8.
阅读全文
摘要:001、 [root@localhost test]# ls a.txt [root@localhost test]# cat a.txt ## 测试数据 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018
阅读全文
摘要:001、问题 /usr/bin/ld: cannot find -lopenblas 。 002、解决方法 yum -y install epel-release yum -y install openblas-devel 003、检测效果 make install 。
阅读全文

浙公网安备 33010602011771号