I love digging around in coreutils. I’ve never found so many fun things in one package as I have with coreutils.
Here’s fold
, for example.
Simplest idea in the world: Basically set a right-hand border for text spillage. cat, as you probably know, just smears everything out as far as it can before jumping back to the opposite side.
fold
lets you set a jump-back point, and if you flag it with -s
, you get breaks at spaces.
Like I said, simplest thing in the world, but the results are gorgeous. Keep this one in your “remember for later” category. 😉
last time i checked fold didn’t do cyrillic text right and thus was useless (to me)…
Thanks for this one! Never heard of it in 10+ Linux years! Makes it easier to quickly scan a largish CSV file without using a CSV viewer or Libreoffice.
Scott
Don’t feel bad. I’m running into new stuff every day.
How is this different than ‘fmt’ ?
eh… thanks for the heads-up!
Pingback: fmt: And the difference is. … | Inconsolation