Yep, I just tried that bash, and it gave me some error.
I add that host part, and I think that won't cause too much problem, because I run a do while () there to make sure the create the different file.