Pattern match does not work in bash script Pattern match does not work in bash script linux linux