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
阅读全文
摘要: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 -
阅读全文