-2
awk 'if(NF==7){print$1":"$2":"$4":"$5, $7, $6}else {print$1":"$2":"$3":"$4, $6, $5}'
awk: if(NF==7){print$1":"$2":"$4":"$5, $7, $6}else {print$1":"$2":"$3":"$4, $6, $5}
awk:^syntax error
這是什麼語法錯誤?箭頭指向如果awk我的語法有什麼問題?
如果在'{}' –
或者'awk'NF == 7 {print $ 1「:」$ 2「:」$ 4「:」$ 5,$ 7,$ 6; next} {print $ 1「:」$ 2「 :「$ 3」:「$ 4,$ 6,$ 5}」 – jlliagre