摘要: 1、测试数据 [root@centos79 test]# cat -A a.txt SUN08^ISUN09^ISUN10^M$ dddd^I33333^Icdddd^M$ dddd^I11111^I55555^M$ 2、dos2unix删除 [root@centos79 test]# cat a. 阅读全文
posted @ 2021-07-17 22:56 小鲨鱼2018 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 [root@centos79 test3]# cat a.txt 3 5 6 2 s g 3 5 c f h e 2、实现第一列和第三列的互换 [root@centos79 test3]# cat a.txt 3 5 6 2 s g 3 5 c f h e [root@centos79 阅读全文
posted @ 2021-07-17 14:42 小鲨鱼2018 阅读(817) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 [root@centos79 test3]# cat a.txt 3 5 6 2 s g 3 5 c f h e 2、删除第二列 [root@centos79 test3]# cat a.txt 3 5 6 2 s g 3 5 c f h e [root@centos79 test3] 阅读全文
posted @ 2021-07-17 14:37 小鲨鱼2018 阅读(12194) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 [root@centos79 test]# cat a.txt e t q t x g a w i k h e [root@centos79 test]# cat b.txt 4 5 6 2 d 2 s g y 2、将b.txt中的第2列用a.txt中的第3列进行替换 [root@ce 阅读全文
posted @ 2021-07-17 01:59 小鲨鱼2018 阅读(2155) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 [root@centos79 test]# cat a.txt e t q t x g a w i k h e 2、cut删除 [root@centos79 test]# cat a.txt e t q t x g a w i k h e [root@centos79 test]# c 阅读全文
posted @ 2021-07-17 01:53 小鲨鱼2018 阅读(5403) 评论(0) 推荐(0) 编辑