1 #!/bin/bash 2 3 [ -e test.sh ] && echo "test.sh exits" 4 [ -f test.sh ] && echo "test.sh exits and it's a regular file" 5 [ -d test.sh ] && echo "test.sh is a directory"