a shell script to check to see if the file file path exists code example
Example: linux shell check if directory does not exists
if [ ! -d directory ]; then
mkdir directory
fi
if [ ! -d directory ]; then
mkdir directory
fi