I would like to have the following sequence: OW HW1 HW2 being repeated in an output file 3000 times such as:
OW
HW1
HW2
.
.
.
OW
HW1
HW2
I believe I can, by using bash, set the OW, HW1 and HW2 as independent variable and then make a do loop 3000 times and print the values in the output file.
awk 'BEGIN{for(i=1;i<=3000;i++)print"OW\nHW1\nHW2"}'>file
– user000001 Oct 12 '18 at 17:07