add pattern match in bash