-- Leo's gemini proxy
-- Connecting to republic.circumlunar.space:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
Sometimes I run grep commands that search files with hugely-long lines. If those lines match, they are printed out and spam my terminal with huge amounts of information, that I probably don't need.
I couldn't find a tool that limits the line-length of its output, so I wrote a tiny one.
It's called short.
You use it like this (my typical usage):
grep foo myfile.txt | short
Or specify the column width like this:
short -w 5 myfile.txt
It's written in Rust. Feel free to add features, fix bugs and package it for your operating system/distribution at gitlab.com/andybalaam/short.
Originally posted at 2020-09-10 14:18:33+00:00. Automatically generated from the original post : apologies for the errors introduced.
-- Response ended
-- Page fetched on Mon May 27 05:56:08 2024