Tween: Fish function for outputting ranges of text

· Brett Terpstra · Jan. 22, 2026, 5:41 p.m.
Summary
This blog post introduces a Fish function called 'tween', which effectively extracts specified ranges of lines from files or STDIN input using various methods such as line numbers, string matching, and regex patterns. It provides a detailed guide on usage, including examples for handling multiple ranges, relative offsets, and integration with syntax highlighting using the bat utility.
MORE POSTS LIKE THIS
Tailspin
Thiago Perrotta · May 24, 2025
Boot a virtual iPhone on a Mac
Adafruit Industries Blog · Sep 1, 2026
How do uv tool and pipx compare?
Python Developer Tooling Handbook – pydevtools.com · Aug 31, 2026
Discover more posts →
AUTHOR
Sponsored
Zulip logo Zulip
Organized team chat for people who take work seriously. Topic-based threading keeps conversations focused.
Try Zulip
Become a sponsor →