Can somebody help this shell programming question? Thank you!
I need to test if any trace file (.trc) was created in a directory. The following code block is just a try. I think the "*" is not working in the case. How to correct the syntax?
if
[[ -f "/u01/app/oracle/admin/test/udump/*.trc" ]]
then
echo "found!"
else
echo "not found!"
fi


Reply With Quote

Bookmarks