I need to create script that goes like this:
if directory contains atleast one file (1 or more) that starts with 'naz'
#do something
else (contains 0 files that start with 'naz')
#do something else
My problem is that when I try
if [ -f naz* ]
I end up with
bash: [: too many arguments
because there are more than 1 files that meet the criteria. I'm looking for a solution that would work with multiple files found.