[TUHS] The most surprising Unix programs

Dave Horsfall dave at horsfall.org
Sat Mar 21 07:57:21 AEST 2020


On Fri, 20 Mar 2020, Richard Salz wrote:

> A cool thing about tools is that you never know how it will be used.

Indeed.  I once wrote a shell script that basically acted as an n-way 
"cut" i.e. you specify the columns you wanted to extract and they ended up 
on the corresponding file descriptors.  Ran into all sorts of bugs, as the 
"obvious" solution didn't work.

> Bach's prelude in C major from Well-Tempered Clavier book I, written in pure
> (GNU) sed: https://github.com/laserbat/bach.sed

I have the Towers of Hanoi written in sendmail.cf, meaning that Sendmail 
is Turing-complete :-)  I can't remember who wrote it.

-- Dave


More information about the TUHS mailing list