Pattern matching in UNIX Case statement
case
processes in order, so if you look for tar
files first, it should not go to next:
case "${word}" in *.tar* ) #process tar :;; #break *.bz2|*.bz ) #process bz2 and bz :;; #break * ) #default :;;esac