Miscellaneous shell and Perl scripts