I have to check whether certain files exist using a if statement. I have to check this by matching a pattern of filename: e.g.
if [[ ${SOURCE_DIR}/test.dat* ]]
This statement should be "true" if any files like test.dat11, test.dat22 etc are present in the source dir. However, this statement is checking only for "test.dat"