Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

sh or bash validate if file no exist

FILE=/etc/docker
if [ ! -f "$FILE" ]; then
    echo "$FILE does not exist."
fi
Source by linuxize.com #
 
PREVIOUS NEXT
Tagged: #sh #bash #validate #file #exist
ADD COMMENT
Topic
Name
5+4 =