MPG - Miles Per Gallon
A sample script which converts $X miles for $Y litres into $Z MPGBCD - Binary Coded Decimal
This was requested by a reader, so here's a sample script to do BCD. Check for Duplicate Files.mkkernel
I wrote various stuff for DRS/NX, which taught me a lot about shell scripting - here they are, in all their ugly glory...- How to use getopt in a shell script. This was written for my speedtouchconf.sourceforge.net project - a way of testing if a PPP (or any other) link is active. Remote Terminal. Rterm is a simple utility to log into boxes. The EMULATOR variable should point to something which takes xterm-style parameters, namely "-T" for the window title, and "-e" for a command to execute. Personally, I use kvt. You can hardcode your fave machine into the code, so "rterm" by itself will go into that box, or "rterm host" will connect to host. "rterm host user" will connect to host host as user user. Set the title of an xterm (works on konsole, gnome-terminal, etc) via ANSI codes. Here is a tool I wrote a while ago, not yet documented. A simple script to trash file contents. Not exactly secure, but makes a decent attempt. Read the disclaimers in the script itself.
Tutorial Scripts
Various scripts related to the Shell Scripting Tutorial are available here and here.Stolen Scripts
Written by Liam Crilly, who I went to college with. We had a challenge to write a "rough time" script... Liam's was far better than mine :-)