shell code mostly written in bash