SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to use test instead of [], then you can use ! to get the negation:
test
[]
!
if ! test "$FILE"; then echo "does not exist" fi