How to truncate the middle of long command output

Use a command group { head -n 3; echo '[…]'; tail -n 5; } to snip print the first few and last few lines.

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论