Answers for "Check is file exist shell"

C#
7

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
0

Check is file exist shell

FILE=/etc/resolv.conf
if [ -f "$FILE" ]; then
    echo "$FILE exists."
fi
Posted by: Guest on June-02-2021

C# Answers by Framework

Browse Popular Code Answers by Language