上一页 1 ··· 84 85 86 87 88 89 90 91 92 ··· 367 下一页
摘要: ubuntu中默认进入目录后默认显示的路径是完整路径。 01,将其设置为最终的路径:basename (base) root@DESKTOP-IDT9S0E:~# cp ~/.bashrc ~/.bashrc.bak ## 避免意外,备份配置文件 (base) root@DESKTOP-IDT9S0 阅读全文
posted @ 2023-05-12 11:48 小鲨鱼2018 阅读(281) 评论(0) 推荐(0) 编辑
摘要: export命令扩大了变量的作用范围。 001、 root@DESKTOP-IDT9S0E:/home/test# ls a.txt record.sh root@DESKTOP-IDT9S0E:/home/test# cat a.txt ## 测试文件 01 02 03 04 05 06 07 0 阅读全文
posted @ 2023-05-12 09:00 小鲨鱼2018 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 001、 root@DESKTOP-IDT9S0E:/home/test# ls a.txt b.csv c.ped xx root@DESKTOP-IDT9S0E:/home/test# cat a.txt 1 2 3 4 5 6 7 8 9 10 root@DESKTOP-IDT9S0E:/ho 阅读全文
posted @ 2023-05-12 08:52 小鲨鱼2018 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 001、限定匹配a3次 root@DESKTOP-IDT9S0E:/home/test# ls a.txt root@DESKTOP-IDT9S0E:/home/test# cat a.txt ## 测试数据 1 takkkkkk 2 taakkkkk 3 taaakkkk 4 33333333 5 阅读全文
posted @ 2023-05-11 10:15 小鲨鱼2018 阅读(303) 评论(0) 推荐(0) 编辑
摘要: a、 正则表达式的类型 使用正则表达式最大的问题在于有不止一种类型的正则表达式。Linux 中的不同应用程序可能会用不同类型的正则表达式。这其中包括编程语言(Java、Perl 和 Python)、Linux 实用工具(比如 sed 编辑器、gawk 程序和 grep 工具)以及主流应用(比如 My 阅读全文
posted @ 2023-05-11 09:14 小鲨鱼2018 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 001、大写转换为小写 root@DESKTOP-IDT9S0E:/home/test# ls a.txt root@DESKTOP-IDT9S0E:/home/test# cat a.txt ## 测试数据 AWF hhdd meh DGEE 345 efff rrt hhkk root@DESK 阅读全文
posted @ 2023-05-10 22:18 小鲨鱼2018 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@PC1 test]# ls a.txt test.py [root@PC1 test]# cat a.txt ## 测试文件 1 abcd 2 abcd 3 abcd 4 abcd [root@PC1 test]# cat test.py ## 测试程序 in_file = o 阅读全文
posted @ 2023-05-10 09:20 小鲨鱼2018 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 001、 >>> import re >>> tmp = re.match(r'^([^\s]+)\s(.*)', "ab cd") >>> tmp <re.Match object; span=(0, 5), match='ab cd'> >>> tmp.group(1) 'ab' >>> tmp 阅读全文
posted @ 2023-05-09 22:57 小鲨鱼2018 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 001、re.match >>> re.match("ab", "abcdefgab") ## 在字符串abcdefgab中查找字符串ab, 返回索引 <re.Match object; span=(0, 2), match='ab'> >>> re.match("xy", "abcdefgab") 阅读全文
posted @ 2023-05-09 20:48 小鲨鱼2018 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 001、 下载安装包 [root@PC1 hisat2]# wget https://github.com/DaehwanKimLab/hisat2/archive/refs/tags/v2.2.1.tar.gz 002、 tar -xavf v2.2.1.tar.gz ## 解压 cd hisat 阅读全文
posted @ 2023-05-09 18:01 小鲨鱼2018 阅读(96) 评论(0) 推荐(0) 编辑
上一页 1 ··· 84 85 86 87 88 89 90 91 92 ··· 367 下一页