Bash 파일이 있는지 체크

By | 2022년 6월 16일
Table of Contents

Bash 파일이 있는지 체크

if [ ! -f /path/to/file ]
then
    echo "File does not exist in Bash"
else
    echo "File found. Do something meaningful here"
fi

답글 남기기