Add a shell script version

actually technically it's a perl one-liner that I just happened to wrap in a shell script