Docs/shell/awk替换分隔符.md

132 B

# 分隔符由','切换为':',并分隔结果
 cat test.txt | awk -F ',' -v OFS=':' '{printf "%s%s%s%s",$1,OFS,$2," "}'`