curena
1/19/2017 - 11:47 PM

Find out if a file exists in Bash

Find out if a file exists in Bash

[ -f /etc/passwd ] && echo "File exists" || echo "File does not exist"