FILE="/etc/hosts"
if [ -f $FILE ]; then
echo "File ${FILE} exists"
else
echo "File ${FILE} does NOT exists"
fi
سوال برنامه نویسی دارید؟
هیچ وقت در پرسیدن سوال شک نکنید
FILE="/etc/hosts"
if [ -f $FILE ]; then
echo "File ${FILE} exists"
else
echo "File ${FILE} does NOT exists"
fi
هیچ وقت در پرسیدن سوال شک نکنید