搜索结果
查询Tags标签: 1N42TVH,共有 26条记录-
linux中实现将连续的多列数据合并为一列数据
1、测试数据root@DESKTOP-1N42TVH:/home/test# ls a.txt root@DESKTOP-1N42TVH:/home/test# cat a.txt 01 02 03 04 05 06 07 08 09 11 12 13 14 15 16 17 18 19 2、实现将连续的三列数据合并为一列数据root@DESKTOP-1N42TVH:/home/test# ls a.txt root@DESKTOP-1N42TVH:…
2022/1/9 7:05:29 人评论 次浏览 -
linux 中删除当前目录下指定文件外所有的文件
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-1N42TVH:/home/test# touch kk.map mn.ped root@DESKTOP-1N42TVH:/home/test# ls abc1.csv abc2.csv ab…
2022/1/7 7:03:27 人评论 次浏览 -
linux 中删除当前目录下指定文件外所有的文件
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-1N42TVH:/home/test# touch kk.map mn.ped root@DESKTOP-1N42TVH:/home/test# ls abc1.csv abc2.csv ab…
2022/1/7 7:03:27 人评论 次浏览 -
linux awk命令统计多个文件的总行数
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@DESKTOP-1N42TVH:/home/test# cat test2.txt a 3 d s 1 j z c m q e i 3 4 k h f 3 root@DESKTOP-1N42TV…
2022/1/4 7:12:37 人评论 次浏览 -
linux awk命令统计多个文件的总行数
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@DESKTOP-1N42TVH:/home/test# cat test2.txt a 3 d s 1 j z c m q e i 3 4 k h f 3 root@DESKTOP-1N42TV…
2022/1/4 7:12:37 人评论 次浏览 -
linux系统中sort命令对字符数字组合字符串进行排序
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/test2# cat test.txt Chr1 Chr11 Chr7 Chr8 Chr10 Chr2 Chr5 Chr3 Chr4 Chr12 Chr6 Chr9 root@DESKTOP…
2022/1/3 7:11:07 人评论 次浏览 -
linux系统中sort命令对字符数字组合字符串进行排序
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/test2# cat test.txt Chr1 Chr11 Chr7 Chr8 Chr10 Chr2 Chr5 Chr3 Chr4 Chr12 Chr6 Chr9 root@DESKTOP…
2022/1/3 7:11:07 人评论 次浏览 -
python中如何提取文件的前几行
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@DESKTOP-1N42TVH:/home/test# cat test.py fp=open("test.txt","r")file=open(…
2022/1/3 1:07:17 人评论 次浏览 -
python中如何提取文件的前几行
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@DESKTOP-1N42TVH:/home/test# cat test.py fp=open("test.txt","r")file=open(…
2022/1/3 1:07:17 人评论 次浏览 -
ubuntu 编译报错 configure: error: You need zlib >= 1.2.3 to build bin/PopLDdecay
1、内核版本root@DESKTOP-1N42TVH:/home/software/PopLDdecay# cat /etc/issue Ubuntu 20.04.3 LTS \n \lroot@DESKTOP-1N42TVH:/home/software/PopLDdecay# cat /proc/version Linux version 5.10.16.3-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gc…
2022/1/2 7:12:32 人评论 次浏览 -
ubuntu 编译报错 configure: error: You need zlib >= 1.2.3 to build bin/PopLDdecay
1、内核版本root@DESKTOP-1N42TVH:/home/software/PopLDdecay# cat /etc/issue Ubuntu 20.04.3 LTS \n \lroot@DESKTOP-1N42TVH:/home/software/PopLDdecay# cat /proc/version Linux version 5.10.16.3-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gc…
2022/1/2 7:12:32 人评论 次浏览