I wrote a shell script to check if a binary is present:
#!/usr/local/bin/bash
if [ -e "/path/to/a/binary/file/app.bin" ]; then 
     echo "INFO: application has been built successfully" 
else 
     echo "ERROR: application couldn't be built". 
fi
It works fine and gives expected results. However if there are many applications with similar name (say app1.bin, app2.bin etc) and I want to test for "app*.bin" the if condition fails:
#!/usr/local/bin/bash
    if [ -e "/path/to/a/binary/file/app*.bin" ]; then 
         echo "INFO: application has been built successfully" 
    else 
         echo "ERROR: application couldn't be built". 
    fi
How can i correct the if condition to search for existence of any binary with app as name i.e. app*.bin
 
     
     
    