Archive for May, 2009

fold – neat utility (and reason to post)

Tuesday, May 19th, 2009

If you have some text you want to wrap, for example the output of “git log” when someone was inconsiderate and placed an exceedingly long single line commit message, you can just do

git log | fold -s

not sure which package fold belongs to (coreutils? textutils?) but it was in my default ubuntu install (default after I installed half the world on it, but never explicitly looked for fold)

Brought to you by the Yet another reason to write a blog post Department.