script to output every number in a sequence between x and y to a text file
Im trying to output every possible number between x and y to a text file, one on each line.
They all start 04xxxxxxxx so I want 0400000000 -> 0499999999
I tried in excel and got as far as 0400350000 by dragging down but figured there must be a much faster way to do it?
So I tried in Bash and came up with this:
which seems to work but it misses off the first 0. Is there any way to add it in as its running, or to the resultant file after?
for i in `seq 0400000000 0499999999`;