随笔分类 -  linux shell

上一页 1 ··· 54 55 56 57 58 59 60 61 62 ··· 78 下一页
摘要:1、ls + grep + xargs 实现 a、 root@DESKTOP-1N42TVH:/home/test# touch test{1..10}.txt root@DESKTOP-1N42TVH:/home/test# touch abc{1..10}.csv root@DESKTOP-1N 阅读全文
posted @ 2022-01-06 23:18 小鲨鱼2018 阅读(440) 评论(0) 推荐(0)
摘要:1、 root@DESKTOP-1N42TVH:/home/test# ls a.txt root@DESKTOP-1N42TVH:/home/test# cat a.txt i A Em F d q ddd M d e N ffff i A Em F d q ddd M d e N ffff ro 阅读全文
posted @ 2022-01-06 22:54 小鲨鱼2018 阅读(104) 评论(0) 推荐(0)
摘要:1、测试数据 root@DESKTOP-1N42TVH:/home/test# ls a.txt root@DESKTOP-1N42TVH:/home/test# cat a.txt d e u d m k j a d c x s k f root@DESKTOP-1N42TVH:/home/tes 阅读全文
posted @ 2022-01-05 23:48 小鲨鱼2018 阅读(280) 评论(0) 推荐(0)
摘要:1、测试数据 root@DESKTOP-1N42TVH:/home/test# ls a.txt root@DESKTOP-1N42TVH:/home/test# cat a.txt i A E F d q d M d e N f root@DESKTOP-1N42TVH:/home/test# c 阅读全文
posted @ 2022-01-05 23:45 小鲨鱼2018 阅读(708) 评论(0) 推荐(0)
摘要:1、测试数据 root@DESKTOP-1N42TVH:/home/test# ls a.txt root@DESKTOP-1N42TVH:/home/test# cat a.txt d w g s d s dd d g r d gg d ge root@DESKTOP-1N42TVH:/home/ 阅读全文
posted @ 2022-01-05 23:34 小鲨鱼2018 阅读(1329) 评论(0) 推荐(0)
摘要:1、测试数据 root@DESKTOP-1N42TVH:/home/test2# ls outcome.map root@DESKTOP-1N42TVH:/home/test2# cat -A outcome.map ## 末尾多出^M 1^Is64199.1^I0^I55910^M$ 1^IOAR 阅读全文
posted @ 2022-01-05 22:54 小鲨鱼2018 阅读(401) 评论(0) 推荐(0)
摘要:tr用来转换或者删除一段文字。 1、实现大小写转换 root@DESKTOP-1N42TVH:/home/test# ls a.txt root@DESKTOP-1N42TVH:/home/test# cat a.txt ## 测试数据 i A E F d q J M S e N f root@DE 阅读全文
posted @ 2022-01-05 12:31 小鲨鱼2018 阅读(261) 评论(0) 推荐(0)
摘要:1、 root@DESKTOP-1N42TVH:/home/test# ls test.txt root@DESKTOP-1N42TVH:/home/test# cat test.txt chr1 snp1 0 55910 chr1 snp2 0 85204 chr1 snp3 0 122948 c 阅读全文
posted @ 2022-01-04 15:01 小鲨鱼2018 阅读(706) 评论(0) 推荐(0)
摘要:1、sub、gsub root@DESKTOP-1N42TVH:/home/test# ls test.txt root@DESKTOP-1N42TVH:/home/test# cat test.txt ## 测试数据 a 3 3 s 1 j z c m q e i 3 4 k h f 3 root 阅读全文
posted @ 2022-01-03 21:42 小鲨鱼2018 阅读(227) 评论(0) 推荐(0)
摘要:1、直接测试 root@DESKTOP-1N42TVH:/home/test# ls test.txt root@DESKTOP-1N42TVH:/home/test# cat test.txt ##测试数据 a 3 3 a 3 3 s 1 j s 1 j z c m z c m q e i q e 阅读全文
posted @ 2022-01-03 20:46 小鲨鱼2018 阅读(576) 评论(0) 推荐(0)
摘要:linux awk忽略大小写 root@DESKTOP-1N42TVH:/home/test# ls test.txt root@DESKTOP-1N42TVH:/home/test# cat test.txt a 3 d Q 1 j z c m q e i 3 4 Q A f 3 root@DES 阅读全文
posted @ 2022-01-03 12:34 小鲨鱼2018 阅读(1343) 评论(0) 推荐(0)
摘要:1、测试数据 root@DESKTOP-1N42TVH:/home/test# ls test.txt test2.txt root@DESKTOP-1N42TVH:/home/test# cat test.txt a 3 d s 1 j z c m q e i 3 4 k h f 3 root@D 阅读全文
posted @ 2022-01-03 12:23 小鲨鱼2018 阅读(1323) 评论(0) 推荐(0)
摘要:1、测试数据及脚本 root@DESKTOP-1N42TVH:/home/test# ls test.py test.txt root@DESKTOP-1N42TVH:/home/test# cat test.txt a 3 d s 1 j z c m q e i 3 4 k h f 3 root@ 阅读全文
posted @ 2022-01-03 00:02 小鲨鱼2018 阅读(1885) 评论(0) 推荐(0)
摘要:1、测试数据 root@DESKTOP-1N42TVH:/home/test2# cat test.txt Chr1 Chr11 Chr7 Chr8 Chr10 Chr2 Chr5 Chr3 Chr4 Chr12 Chr6 Chr9 2、排序 root@DESKTOP-1N42TVH:/home/t 阅读全文
posted @ 2022-01-02 11:50 小鲨鱼2018 阅读(1761) 评论(0) 推荐(0)
摘要:1、测试数据 root@DESKTOP-1N42TVH:/home/test/test# cat test.txt 2013 2014 2013 2014 1 1.3 0 0 0.9 1.7 0 0 0.9 1.3 4.2 0.9 1 1.6 0 0.9 0 1.6 0 0.9 0.9 1.2 0 阅读全文
posted @ 2022-01-01 16:33 小鲨鱼2018 阅读(1018) 评论(0) 推荐(0)
摘要:1、内核版本 root@DESKTOP-1N42TVH:/home/software/PopLDdecay# cat /etc/issue Ubuntu 20.04.3 LTS \n \l root@DESKTOP-1N42TVH:/home/software/PopLDdecay# cat /pr 阅读全文
posted @ 2022-01-01 13:21 小鲨鱼2018 阅读(402) 评论(0) 推荐(0)
摘要:1、问题 Err:12 http://security.ubuntu.com/ubuntu focal-updates/main amd64 openjdk-11-jre-headless amd64 11.0.11+9-0ubuntu2~20.04 404 Not Found [IP: 91.18 阅读全文
posted @ 2022-01-01 08:46 小鲨鱼2018 阅读(628) 评论(0) 推荐(0)
摘要:1、测试数据 root@PC1:/home/test2# cat test.txt 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 阅读全文
posted @ 2021-12-31 14:22 小鲨鱼2018 阅读(239) 评论(0) 推荐(0)
摘要:1、 root@PC1:/home/test2# ls test1.txt test2.txt root@PC1:/home/test2# cat test1.txt 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 root@P 阅读全文
posted @ 2021-12-27 10:22 小鲨鱼2018 阅读(435) 评论(0) 推荐(0)
摘要:1、awk实现 root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt ## 测试数据 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 root@ 阅读全文
posted @ 2021-12-27 10:19 小鲨鱼2018 阅读(2957) 评论(0) 推荐(0)

上一页 1 ··· 54 55 56 57 58 59 60 61 62 ··· 78 下一页