Answers for "bash if condition if file is not present"

13

check if file exists bash

FILE=/etc/resolv.conf
if [ -f "$FILE" ]; then
    echo "$FILE exists."
else 
    echo "$FILE does not exist."
fi
Posted by: Guest on October-23-2020

Code answers related to "bash if condition if file is not present"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language