TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Stail.sh – Short Tail

2 pointsby Sidneys1over 2 years ago
This is a fairly short (59 LOC) utility script that allows you to tail the output of a command, but while only showing the last -n (default 5) lines of output without scrolling the output buffer. It will trim lines to the terminal width (rather than wrap them) to avoid splitting terminal escape sequences. You can also optionally -p PREFIX each line of output. Finally, it (by default) removes blank&#x2F;whitespaces lines, but they can be preserved with -w.<p>Video of it in action here: <a href="https:&#x2F;&#x2F;i.imgur.com&#x2F;VkBzA5S.mp4" rel="nofollow">https:&#x2F;&#x2F;i.imgur.com&#x2F;VkBzA5S.mp4</a> (recorded with github.com&#x2F;charmbracelet&#x2F;vhs)

no comments

no comments