I want to search for the existence of a file in a certain folder and execute commands if it finds it. The code below sorta works, but the question marks are not treated as wildcards. If I replaced the question marks with the exact file to mach such as:
It would find it fine. However I need to search using the wildcards.
How may I achieve this please?
if [ -f "$SEARCHFILE" ]
echo "Not found"