Bubbles
0 points · 3 days ago · 0 comments

Problem statement: given a command run with a ton of output, how can you take a glance at both (i) its first few lines and (ii) its last few lines? Let’s hypothetically call it lorem. This is what we want to achieve: shell lorem | head shell lorem | tail …ideally though we would like to run lorem only once. How about this? shell lorem | tee out.log head out.log tail out.log rm out.log It works, but can we do it without creating an intermed...

No comments yet. Log in to discuss on the Fediverse