반응형
#!/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