#!/bin/ksh
if [ -f test_f ]; then
 echo "file test_f exist"
else
 echo "file test_f not_exist"
fi
if [ -d test_d ]; then
 echo "directory test_d exist"
else
 echo "directory test_d not_exist"
fi
#!/bin/ksh
if [ -f test_f ]; then
 echo "file test_f exist"
else
 echo "file test_f not_exist"
fi
if [ -d test_d ]; then
 echo "directory test_d exist"
else
 echo "directory test_d not_exist"
fi