awk分割,paste合并列
awk -F '-' '{print $1;}' data
Shell 将两个文件按列合并
需要把file2的第二列合并到file
paste -d " " file1 file2
删除文件 text中第一列
awk '{$1="";print $0}' text
参考来源:
https://blog.csdn.net/hongchangfirst/article/details/25071937
https://www.cnblogs.com/chenhuan001/p/6674326.html
https://blog.csdn.net/chenxieyy/article/details/72778403
posted on 2019-10-12 14:57 BPSO_mynotes 阅读(388) 评论(0) 编辑 收藏 举报