if [ -d "my" ]; then
echo "yes"
else
echo "no"
fi
if [ -f "my.txt" ]; then
echo "yes"
else
echo "no"
fi
if [ -d "my" ]; then
echo "yes"
else
echo "no"
fi
if [ -f "my.txt" ]; then
echo "yes"
else
echo "no"
fi