Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Check is file exist shell

FILE=/etc/resolv.conf
if [ -f "$FILE" ]; then
    echo "$FILE exists."
fi
Source by linuxize.com #
 
PREVIOUS NEXT
Tagged: #Check #file #exist #shell
ADD COMMENT
Topic
Name
6+5 =