if [ -d /My/directory/psth ]
then
echo "Exists"
else
echo "Doesn't exist"
fi
----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
My favouries are the O'Reiley series. This is a shamesless plug, and I don't work for them. IN particular you might want to look at this Unix site which I still refer to from time to time.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.