Shell:在第一个空行之前获取所有行的简单方法

前端之家收集整理的这篇文章主要介绍了Shell:在第一个空行之前获取所有行的简单方法前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
在遇到第一个空行之前,输出文件行的最佳 shell命令是什么?例如: @H_403_1@output these lines but do not output anything after the above blank line (or the blank line itself)

AWK?别的什么?

@H_403_1@sed -e '/^$/,$d' <<EOF this is text so is this but not this or this EOF

猜你在找的Bash相关文章