请教awk输出中的换行如何去掉

2025-04-16 03:47:00
推荐回答(1个)
回答1:

用printf语句输出,可以自己控制是否换行
printf "%s\n",$0
换行输出
printf "%s",$0
不换行输出