I have files:
sum_<INPUT FILENAME>.YYYYMMDDhhmmss.csv
and
sum_details_<INPUT FILENAME>.YYYYMMDDhhmmss.csv
I have no idea, what is input filename, but in the code I would like to catch them in case
I process them in the loop above case statement
for *.${Today}.*.txt *.${TODAY}*.csv
do
firstpreffix=`echo ${file} | cut -d'_' -f 1`
case ${firstpreffix} in
sum)
if [ $file = "sum_INPUT FILE" ];then
do something
else
do something
fi
esac
done
The problem for me is if I make
if [ $file = sum_*.*.csv ];then
Statement can catch both files. I need to process them separate
Thanks for contribution
My system is AIX and borne shell