@haitchfive<p><code>slice</code> is a minimal, reliable tool for extracting byte ranges from text files, with support for trimming incomplete lines. It is ideal for clean, line-aware chunking of large text files — such as for indexing, archival, or content analysis.</p><p><a href="https://github.com/ha1tch/slice" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/ha1tch/slice</span><span class="invisible"></span></a></p><p>I can't believe it's 2025 and unix still can't do this properly without awk and sed, or any simple combination of unix commands.</p><p><a href="https://oldbytes.space/tags/foss" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>foss</span></a> <a href="https://oldbytes.space/tags/unix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>unix</span></a> <a href="https://oldbytes.space/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> <a href="https://oldbytes.space/tags/slice" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>slice</span></a></p>