Hi Experts,
I have a problem where I want to print missing columns (3,4) within a block of text. Each block is separated by "###". Some rows have missing column 3 and 4 which should be same as the previous value in column 3 and 4. The file is space delimited.
For example:
INPUT
###
625204690_cc 100.00% 568928245_mm 100.00%
625204692_cc 100.00% 568928247_mm 100.00%
625204688_cc 98.76%
625205698_cc 95.76%
625204600_cc 100.00% 568928555_mm 100.00%
###
625287481_cc 100.00% 568925788_mm 100.00%
625181641_cc 75.61% 568925790_mm 99.50%
124487133_cc 70.91%
OUTPUT
###
625204690_cc 100.00% 568928245_mm 100.00%
625204692_cc 100.00% 568928247_mm 100.00%
625204688_cc 98.76% 568928247_mm 100.00%
625205698_cc 95.76% 568928247_mm 100.00%
625204600_cc 100.00% 568928555_mm 100.00%
###
625287481_cc 100.00% 568925788_mm 100.00%
625181641_cc 75.61% 568925790_mm 99.50%
124487133_cc 70.91% 568925790_mm 99.50%
I'll be really thankful for your help.