1: 2: 3: 4: 5: 6: 7: 8: 9:
#!/bin/bash if [ -e /opt/file/file.log ] then echo "file is there" else #code to send email exit fi