Compruebe si existe el archivo bash
FILE=/etc/resolv.conf
if [ -f "$FILE" ]; then
echo "$FILE exists."
else
echo "$FILE does not exist."
fi
Super Dude
FILE=/etc/resolv.conf
if [ -f "$FILE" ]; then
echo "$FILE exists."
else
echo "$FILE does not exist."
fi
#!/bin/bash
if [ -e x.txt ]
then
echo "ok"
else
echo "nok"
fi