regular expression test and shell scripts