cqwfl: changed output formatting to more portable

Avoid using non-POSIX seq command to generate for loop items.
Changed for loop to while loop with manual incrementation.