|
-
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|