shell 格式化数据,转换为execl
awk ' BEGIN { OFS="\t"} ;{ $1=$1 ; print $8,$NF} ' >/root/log/aa.xlsx
awk ' BEGIN { OFS=","} ;{ $1=$1 ; print $8,$NF} ' > /root/log/aa.csv
我们只需要努力,然后剩下的交给时间。
awk ' BEGIN { OFS="\t"} ;{ $1=$1 ; print $8,$NF} ' >/root/log/aa.xlsx
awk ' BEGIN { OFS=","} ;{ $1=$1 ; print $8,$NF} ' > /root/log/aa.csv