Forgotten treasures of Software Engineering
Forgotten treasures of Software Engineering from my recently-cleaned-up home directory.
Back in about 2005, a friend told me he wanted to write a program which uses the Scroll Lock LED to display morse code. Here's what we ended up with back then. :-)
bsdgames and X11 required.
#!/bin/sh exec morse -s | sed -e 's/\./xset led on; sleep 0PUNKT1; xset led off; sleep 0PUNKT5;/g' -e 's/\-/xset led on; sleep 0PUNKT3; xset led off; sleep 0PUNKT3;/g' -e 's/PUNKT/\./g' -e 's/MINUS/\-/g' -e 'a sleep 0.6' | sh
Who needs an interpreter when you can do code transformation with
sed ? :-)