in reply to Don't print on the last loop

One way would be to push the results onto an array and use join to print everything after your loop is done.

--
We're looking for people in ATL