I use the find command in my bash script so
for x in `find ${1} .....`;
do
...
done
However, how do I handle the case where the entry in my script is a file / directory that does not exist? (i.e. I want to print a message when this happens)
I tried using -d and -f, but the case I am having problems with is $ {1} is. "or".."
When the input is that which does not exist, it does not enter my for loop.
Thank!
source
share