I have been trying to search for a file which contains a specific pattern. The pattern is itself in a variable tmpfl
echo $tmpfl --> ack_2*
Now to find for the file in the current working directory itself I have been trying to use
find . -name $tmpfl find . -name ($tmpfl)
but none of them seem to work . Though
find . -name ack_2*
works like a charm .
What is wrong in the approach ? It's simple variable substitution in Unix , right ? So what am I missing ?