Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

zsh check if file exists

if [ ! -f /tmp/foo.txt ]; then
    echo "File not found!" >&2
    exit 1
fi
 
PREVIOUS NEXT
Tagged: #zsh #check #file #exists
ADD COMMENT
Topic
Name
6+6 =