if [[ -f file.txt ]]; then ... fi
Category: Bash Scripting
Check if a file exists and is a regular file