I have simple bash script find.sh for finding the files
==>cat find.sh
echo $1
find -name $1
but it is not taking the correct arguments sometimes, instead it takes the fixed argument
Eg
find.sh 'ECSv2_P_TCP_FUNC_060*'
ECSv2_P_TCP_FUNC_060 ECSv2_P_TCP_FUNC_060.backup
Here though i have passed 'ECSv2_P_TCP_FUNC_060*' it has taken ECSv2_P_TCP_FUNC_060 ECSv2_P_TCP_FUNC_060.backup these as arguments.
Why does this happen? And how to avoid this?