Shell多行文字合并为一行

awk '{printf (/#/&&NR>1)?"\n"$0:$0}'

猜你喜欢

转载自crane-ding.iteye.com/blog/2171619