摘要:
1、按行排列 [root@centos7 test]# cat a.txt 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 [root@centos7 test]# cat a.txt | xargs -n 4 01 02 03 阅读全文
posted @ 2021-04-15 18:37
小鲨鱼2018
阅读(475)
评论(0)
推荐(0)
摘要:
1、 [root@centos7 test]# cat a.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 37 38 39 阅读全文
posted @ 2021-04-15 17:28
小鲨鱼2018
阅读(1299)
评论(0)
推荐(0)
摘要:
1、测试数据 [root@centos7 test]# cat a.txt e d g e s d g w a x d g n d i d 2、 [root@centos7 test]# cat a.txt e d g e s d g w a x d g n d i d [root@centos7 阅读全文
posted @ 2021-04-15 14:36
小鲨鱼2018
阅读(292)
评论(0)
推荐(0)
摘要:
1、测试数据 [root@centos7 test2]# cat a.txt e d g e d w i s d g w e i d a x d g i w e n d i d o e w 2、提取1-3列,1-5列 [root@centos7 test2]# cat a.txt e d g e d 阅读全文
posted @ 2021-04-15 11:57
小鲨鱼2018
阅读(2983)
评论(0)
推荐(0)
摘要:
1、测试数据 [root@centos7 test2]# cat a.txt e d g e s d g w a x d g n d i d 2、将第三列替换为xxx [root@centos7 test2]# cat a.txt e d g e s d g w a x d g n d i d [r 阅读全文
posted @ 2021-04-15 11:03
小鲨鱼2018
阅读(4883)
评论(0)
推荐(0)
摘要:
1、测试数据 [root@centos7 test2]# cat a.txt e d g e s d g w a x d g n d i d [root@centos7 test2]# cat a.txt | sed -n l e d g e$ s d g w$ a x d g$ n d i d$ 阅读全文
posted @ 2021-04-15 10:57
小鲨鱼2018
阅读(2236)
评论(0)
推荐(0)
摘要:
1、测试数据 [root@centos7 test2]# ll -h total 1.4G -rw-r--r--. 1 root root 41M Apr 15 09:47 a.map -rw-r--r--. 1 root root 204M Apr 15 09:47 a.ped -rw-r--r- 阅读全文
posted @ 2021-04-15 10:03
小鲨鱼2018
阅读(1199)
评论(0)
推荐(1)
摘要:
1、测试数据 [root@centos7 test2]# ls a.map a.ped b.map b.ped c.ped result.map [root@centos7 test2]# ll -h total 1.4G -rw-r--r--. 1 root root 41M Apr 15 09: 阅读全文
posted @ 2021-04-15 09:57
小鲨鱼2018
阅读(1429)
评论(0)
推荐(1)
摘要:
1、创建测试数据 [root@centos7 test2]# cat > a.txt i s g z e q d k i p m h y u t e ^C [root@centos7 test2]# ls a.txt [root@centos7 test2]# cat a.txt i s g z e 阅读全文
posted @ 2021-04-15 09:44
小鲨鱼2018
阅读(898)
评论(0)
推荐(0)
摘要:
1、创建测试数据 [root@centos7 test2]# touch a.txt b.txt c.txt; mkdir test01 test02 test03 [root@centos7 test2]# ls a.txt b.txt c.txt test01 test02 test03 2、删 阅读全文
posted @ 2021-04-15 09:23
小鲨鱼2018
阅读(1005)
评论(0)
推荐(0)