How to create new file of (for in do done)

How to create new file of (for in do done)

I am having script detail.

Ex. My srcipt

year="2010"

printf "Insert Day : "
read day
printf "Month : "
read month
printf "server : "
read server

list_sum='ab903 ab904 ab905 ab906 ab923 ab932'
for li in $list_sum
do
Number=`cat /archive/log/$server/Poster/trxr.log.$year-$month-$day.log  |grep $li >> $year-$month-$day-$server.log`
done

I want to out put file format.

2010-04-04-01ab903.log
2010-04-04-01ab904.log
2010-04-04-01ab905.log
2010-04-04-01ab906.log
2010-04-04-01ab923.log
2010-04-04-01ab932.log

Any idea how to do this?

Thanks

You have almost done it... But what is the purpose of the variable "Number"?

year="2010"
printf "Insert Day : "
read day
printf "Month : "
read month
printf "server : "
read server
list_sum='ab903 ab904 ab905 ab906 ab923 ab932'
for li in $list_sum
do
grep $li /archive/log/$server/Poster/trxr.log.$year-$month-$day.log i >> $year-$month-$day-$server-$li.log`
done