Hi all,
i am using this code , but having some problem,
Code:
pattern=File_[0-9]*.csv
pattern1=File_[0-9]*_[0-9]*.csv
and then i am comparing the patterns like this
Code:
case ${arr[$i]} in
$pattern) echo "pattern %N% match" ;;
esac
case ${arr[$i]} in
$pattern1) echo "pattern %N%_%N% match" ;;
esac
but if name of my file is File_23_23.csv
then it is returning
pattern %N% match
pattern %N%_%N% match
but the desired result should be only pattern %N%_%N% match only.
can any one please help me.