MD5 File Autochecking
Tonight I was playing around with creating more templates in Ubuntu’s ~/Template directory and thought I’d play with MD5 files. This doesn’t just apply to the ~/Templates dir, but putting it in the templates directory will make it easier for a couple reasons. If you put this header in a MD5.md5 file and make that template executable, when you right click and create an MD5 file the file will be executable and will already have the shebang in the file.
An example, the following will let you run ./filename.md5 and have it return the results of the md5 check.
#!/usr/bin/md5sum -c
bf185a69398a7fa91b6006aae61f8be1 TracMercurial-0.11.0.7-py2.4.egg
$ chmod +x mercurial_plugin.md5
$ ./mercurial_plugin.md5
TracMercurial-0.11.0.7-py2.4.egg: OK
