#!/bin/bash if [ -d /tmp/test ] then echo “File exists” fi
#!/bin/bash if [ -f /tmp/test.txt ] then echo “File exists” fi