I am running the below shell script
awk -F ' *[[:alnum:]_]*: *' 'BEGIN {h="bla;blaa;blaaa;blaaaaa;blaaaaa1;bla111;bla2;bla3;blaaa3;bla4"; print h; n=split(h,F,/;/)}
function pr() {if(F[1] in A) {for(i=1;i<=n;i++)printf "%s%s",A[F[i]],(i<n)?";":RS}}
/insert_job/ {pr(); delete A}
{for(i in F){if($0~"^"F[i])A[F[i]]=$2}}
END {pr()}' infile > outfile.csv
输出文件是output.csv,其中coma是delimiter。由于其中一列包含昏迷也在那里的值,output.csv搞砸了。请帮助我理解如何将分隔符设置为; (分号)