Create a list from minimum and maximum

Using the input file for each row , using columns 1 (min) and 2 (max) , and with increment of 4 each time I want to create the output file.

Input file

1000 1012 2000 2001
2000 2008 3000 3001

Output desired

1000 2000 2001
1004 2000 2001
1008 2000 2001
1012 2000 2001
2000 3000 3001
2004 3000 3001
2008 3000 3001

Thanks in advance

Hello jiam912,

We encourage users to add their efforts which they have put in order to solve their own problems in their post.
So kindly do let us know what you have tried to solve this?

Thanks,
R. Singh

1 Like

On top of what RavinderSingh13 already said, similar problems have been solved umpteen times in these forums. Try to find (and adapt?) one or several...

1 Like

Hi RudiC

Please can u let me know one of the similar problems to check for it

Many Tks

Look at the bottom of this thread: 10 More Discussions You Might Find Interesting for suggestions.

Or, "Advanced search" ing for "missing" "value" gives

[Fill in missing values](Fill in missing values awk to insert missing string based on pattern in file Fill in missing hours and interpolate values using awk.)
[awk to insert missing string based on pattern in file](Fill in missing values awk to insert missing string based on pattern in file Fill in missing hours and interpolate values using awk.)
[Fill in missing hours and interpolate values using awk.](Fill in missing values awk to insert missing string based on pattern in file Fill in missing hours and interpolate values using awk.)

on the first few pages...