====== BASH - Files - Check if a File exists ====== #!/bin/bash filename=$1 if [ -f "$filename" ]; then echo "File exists" else echo "File does not exist" fi