I'm writing a script to create target and lun numbers for disks.
The script needs to start with a number and count to 7 printing the count. Then reset the second number to 0 and increment the first number and print the results.
It must be in hex too.
e.g.
0A 00
0A 01
0A 02
....
0A 07
0B 00
0B 01
0B 02 etc
I can do this with a long shell script but was hoping someone can suggest a more efficent way with AWK?
thanks
The script needs to start with a number and count to 7 printing the count. Then reset the second number to 0 and increment the first number and print the results.
It must be in hex too.
e.g.
0A 00
0A 01
0A 02
....
0A 07
0B 00
0B 01
0B 02 etc
I can do this with a long shell script but was hoping someone can suggest a more efficent way with AWK?
thanks