随笔分类 - linux shell
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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/
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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@
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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@
阅读全文

浙公网安备 33010602011771号