Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

check if file exists bash

FILE=/etc/resolv.conf
if [ -f "$FILE" ]; then
    echo "$FILE exists."
else 
    echo "$FILE does not exist."
fi
Source by linuxize.com #
 
PREVIOUS NEXT
Tagged: #check #file #exists #bash
ADD COMMENT
Topic
Name
7+9 =