awk 当前离线
上尉
gawk -v OFS=, "$1=$1" a.txt >b.txt复制代码
TOP
sed -r "s/ +/,/g" a.txt >b.txt复制代码
gawk "BEGIN{OFS=\",\"}$1=$1" a.txt >b.txt复制代码