bg de en es fr it nl pl pt sv tr zh

shell scripting

How to truncate the middle of long command output

alexwlchan’s notes

Use a command group { head -n 3; echo '[…]'; tail -n 5; } to snip print the first few and last few lines.If I’m running a command with lots of output, I can use head(1) to get the first few lines, or tail(1) to get the last few lines. What if I want to get some lines from the beginning and from...

🧹 Tidying Up After Myself: Automatically Deleting Old GitHub Issues

Amedee

At some point, I had to admit it: I’ve turned GitHub Issues into a glorified chart gallery. Let me explain. Over on my amedee/ansible-servers repository, I have a workflow called workflow-metrics.yml, which runs after every pipeline. It uses yykamei/github-workflows-metrics to generate...