Postreal Media

Hacks

Here are some small utilities and toys. Consider them unsupported and self-documenting, though if you add anything cool I'd love to see it.

regex_mv.sh - Moves all the files in a directory by substituting their names with a regular expression. For example:

$ ls
filefoo.txt
$ regex_mv.sh s/foo/bar/ .
filefoo.txt -> filebar.txt
$ ls
filebar.txt

keepalive.sh - Generic little keep-alive script for all of your remote shell connections. Does not require Crtl-C to exit, so it is 1337er than most.