3 ms·
If you're just wondering, try: test -e file or: if [ -e file ]; then echo "File exists!" else echo "File does not exist!" fi Edit: Untes
by btschaegg 7y ago
If you're just wondering, try:
test -e file
or:
if [ -e file ]; then
echo "File exists!"
else
echo "File does not exist!"
fi
Edit: Untested, I'm currently not at my desk to verify it :)