Extract Uniq prefix from a start and end prefix

Dear All,

assume i have a file with content:

<Start>6000</Start>
<Stop>7599</Stop>

the output is:

6000
7000
7100
7200
7300
7400
7599

how should we use any awk , sed , perl can do this task, means to extract the uniq prefixes from the start and stop prefix.

Thanks
Jimmy

perl -nle '/<St(?:art|op)>(\d+)/ and print $1' input.file

Hi Aia,

Thanks, after run your cmd, the output will be

6000
7599

but the output should be

6000
7000
7100
7200
7300
7400
7599

:confused:

Please explain the logic by which that output is supposed to be produced. I don't see any pattern in taking a starting number and sometimes adding 1000 to it, sometimes adding 100 to it, and sometimes adding 199 to it to reach a stopping number???