Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

if file not exists

#!/bin/bash
file="/.config/backup.cfg"
if [ ! -f "$file" ]
then
    echo "$0: File '${file}' not found."
fi
Source by www.cyberciti.biz #
 
PREVIOUS NEXT
Tagged: #file #exists
ADD COMMENT
Topic
Name
1+4 =