网站首页 站内搜索

搜索结果

查询Tags标签: PC1,共有 72条记录
  • linux 系统中如何匹配指定数目的连续多个字符

    1、测试数据root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt attatgcccagggtttgttacttcagatgtgtccagagtttctcccttct ggcaggttcatggtcttgctcacttcaagaatgaagctgcagacatttac ggtgagtgttacagcacttatatttgttgtatccagagtttgttccttca gatgtgtccagaatttct…

    2022/5/6 7:13:45 人评论 次浏览
  • linux 中如何删除重复行

    1、sort + uniq实现root@PC1:/home/test# ls a.txt root@PC1:/home/test# cat a.txt 1 2 a b 1 2 1 2 o p a b m m root@PC1:/home/test# sort a.txt | uniq ## 删除重复行 1 2 a b m m o p root@PC1:/home/test# sort a.txt | uniq -u ## 取唯一行 m m o …

    2022/5/2 7:16:27 人评论 次浏览
  • linux中实现对文件批量重命名

    1、root@PC1:/home/test# ls root@PC1:/home/test# touch {a..d}.txt {a..d}.csv root@PC1:/home/test# ls a.csv a.txt b.csv b.txt c.csv c.txt d.csv d.txt root@PC1:/home/test# ls *.txt a.txt b.txt c.txt d.txt root@PC1:/home/test# ls *.txt | awk BEG…

    2022/5/2 7:16:24 人评论 次浏览
  • linux 中awk中数组实现逆向输出文件

    1、root@PC1:/home/test2# ls a.txt root@PC1:/home/test2# cat a.txt a b c d a b e f c d c d m n root@PC1:/home/test2# awk {a[i++]=$0} END {for(j = i - 1; j >= 0; j--) print a[j]} a.txt m n c d c d e f a b c d a b tac不香吗? 不过awk数组是真强大。ro…

    2022/5/2 7:16:15 人评论 次浏览
  • HCNP Routing&Switching之代理ARP

    前文我们了解了端口隔离相关话题,回顾请参考https://www.cnblogs.com/qiuhom-1874/p/16186451.html;今天我们来聊一聊ARP代理相关话题;端口隔离之破解之道前文我们通过抓包可以看到,当同一vlan下的端口做了双向端口隔离或者单向端口隔离以后,对应的端口就不能正常通信…

    2022/4/25 6:14:55 人评论 次浏览
  • linux中如何使用变量提取连续的行

    1、一般情况提取连续行 测试数据root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt >1 01 02 >2 03 04 >3 05 06 >4 07 08 >5 09 10 >6 11 12 >7 13 14 >8 15 16 >9 17 18 >10 19 20 2、sed实现,提取2到5行root@PC1…

    2022/2/3 7:12:27 人评论 次浏览
  • linux shell中将fasta文件按照每行指定碱基数输出

    1、测试数据root@PC1:/home/test# ls record.txt test.fa root@PC1:/home/test# cat test.fa >OR4F29_ENSG00000284733_ENST00000426406_20_955_995 AGCCCAGTTGGCTGGACCAATGGAT GGAGAGAATCACTCAGTGGTATCTGAG TTTTTGTTTCTGGGACTC >OR4F16_ENSG00000284662_ENST00000…

    2022/2/3 7:12:27 人评论 次浏览
  • linux中将多列数据转换为指定列数据

    1、测试数据root@PC1:/home/test# ls a.txt root@PC1:/home/test# cat a.txt 2 3 5 d a d g v k z c d e q w r i j m n x z v d f g h 2、转换为3列数据root@PC1:/home/test# ls a.txt root@PC1:/home/test# cat a.txt 2 3 5 d a d g v k z c d e q w r i j m n x z v d…

    2022/2/1 7:30:49 人评论 次浏览
  • linux中如何统计文件字符数

    1、测试数据root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt a 3 5 d s g e z root@PC1:/home/test2# cat -A test.txt a 3 5 d$ s g e z$ 2、wc -croot@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt a 3 5 d s g e z root@…

    2022/1/31 7:04:27 人评论 次浏览
  • linux中如何将多行数据转换为一行数据

    1、测试数据root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt ## 测试数据 a 3 5 d s g e z c g w k z c m d 2、xargs实现(数据大时不适用)root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt a 3 5 d s g e z c g w k z…

    2022/1/31 7:04:27 人评论 次浏览
  • linux中bc命令

    在终端实现计算功能 1、在终端直接使用root@PC1:/home/test# bc ## 在终端直接输入bc进入 bc 1.07.1 Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006, 2008, 2012-2017 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For de…

    2022/1/15 7:07:23 人评论 次浏览
  • linux中bc命令

    在终端实现计算功能 1、在终端直接使用root@PC1:/home/test# bc ## 在终端直接输入bc进入 bc 1.07.1 Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006, 2008, 2012-2017 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For de…

    2022/1/15 7:07:23 人评论 次浏览
  • linux awk命令实现对数据的每一列进行求和、求平均

    1、测试数据root@PC1:/home/test# ls test.txt root@PC1:/home/test# cat test.txt 3 4 2 9 1 3 5 4 3 7 8 4 2 3 4 6 2、对每一列数据进行求和root@PC1:/home/test# ls test.txt root@PC1:/home/test# cat test.txt 3 4 2 9 1 3 5 4 3 7 8 4 2 3 4 6 root@PC1:/home/tes…

    2022/1/15 7:05:05 人评论 次浏览
  • linux awk命令实现对数据的每一列进行求和、求平均

    1、测试数据root@PC1:/home/test# ls test.txt root@PC1:/home/test# cat test.txt 3 4 2 9 1 3 5 4 3 7 8 4 2 3 4 6 2、对每一列数据进行求和root@PC1:/home/test# ls test.txt root@PC1:/home/test# cat test.txt 3 4 2 9 1 3 5 4 3 7 8 4 2 3 4 6 root@PC1:/home/tes…

    2022/1/15 7:05:05 人评论 次浏览
  • linux awk命令实现输出每一列数据的最大值、最小值

    1、测试数据root@PC1:/home/test# ls test.txt root@PC1:/home/test# cat test.txt 3 4 2 2 1 9 5 7 5 7 8 4 2 3 4 6 2、输出每一列的最大值root@PC1:/home/test# ls test.txt root@PC1:/home/test# cat test.txt 3 4 2 2 1 9 5 7 5 7 8 4 2 3 4 6 root@PC1:/home/test#…

    2022/1/15 7:05:03 人评论 次浏览
扫一扫关注最新编程教程