Check whether a file does not exist in Bash script. 1 2 3 4. if [ ! -f /tmp/foo.txt ] then echo "File not found!" fi ...
snipt.net