Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
zsh check if file exists
AivanF.
Programming language:
Shell/Bash
2021-05-24 09:33:28
0
Q:
zsh check if file exists
SunTreeMan
Code:
Shell/Bash
2021-02-28 13:28:01
FILE=/etc/resolv.conf if [[ -f "$FILE" ]]; then echo "$FILE exists." fi
0
Tags
file
check
Related
bash check if string does not exist in file
New to Communities?
Join the community