Hi,
I'm writing a part of script to test the files, here is what is looks like:
if [ -r /test/A*.TXT ]
then
do somthing
fi
This script runs well on HPUX. However, when I test it on Linux(redhat), it only works if there is only one file with name A*.TXT. If there's more than one files with this kind of name in that directory, the test will never pass.
Can anyone help me with this? Thanks a lot!
Yes, this part is taken from a script which has been running on our HPUX system for years. Now we are migrating the system to Linux, that's how we found this problem.