if [ ! -f file ]; then echo "file does not exist" fi if [ ! -d dir ]; then echo "dir does not exist" fi
[ ! -f file ] && echo "file does not exist" [ ! -d dir ] && echo "dir does not exist"