improved the bash-fu, thanks to Paul Sladen
added bash script