Answers for "if file not exists"

0

if file not exists

#!/bin/bash
file="/.config/backup.cfg"
if [ ! -f "$file" ]
then
    echo "$0: File '${file}' not found."
fi
Posted by: Guest on August-27-2021

Code answers related to "if file not exists"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language