Answers for "check a file exists in shell script with sudo command"

12

.sh script: check if file exist

#!/bin/bash
if [ -e x.txt ]
then
    echo "ok"
else
    echo "nok"
fi
Posted by: Guest on March-24-2020

Code answers related to "check a file exists in shell script with sudo command"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language