03 2020 档案

摘要:1、创建测试数据 [root@linuxprobe test]# echo -e "1 2 3 4\n5 6 7 8\n9 5 6 3\n2 3 4 5" > b.txt ##测试数据 [root@linuxprobe test]# cat b.txt 1 2 3 4 5 6 7 8 9 5 6 3 阅读全文
posted @ 2020-03-13 23:37 小鲨鱼2018 阅读(3833) 评论(0) 推荐(0) 编辑
摘要:1、创建了一个示例数据a.txt seq 11 30|xargs -n 5|sed 's/ /\t/g' > a.txt 提取第一列 : cut -f 1 a.txt 提取第2列: cut -f 2 a.txt 提取 1-4列: cut -f 1-4 a.txt 提取 第2列至最后一列: cut - 阅读全文
posted @ 2020-03-06 20:27 小鲨鱼2018 阅读(416) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示