Find out if a file exists in Bash
[ -f /etc/passwd ] && echo "File exists" || echo "File does not exist"