I have a script that takes two numbers both are 6 digit e.g 220210 and 220221.

All I want is a loop to write all numbers between 220210 and 220221 and these 2 numbers
into a file.

I know its probably dead simple but its been doing my head in.

HP-UX 11.23
bash