shell 格式化数据,转换为execl

awk '  BEGIN { OFS=" "} ;{ $1=$1 ; print $8,$NF} ' >/root/log/aa.xlsx

awk '  BEGIN { OFS=","} ;{ $1=$1 ; print $8,$NF} ' > /root/log/aa.csv

原文地址:https://www.cnblogs.com/lgj8/p/12483730.html