I have 2 files, 1st file it has the output and another one template. I want to add ID's in the template from output without hardcode the value.
Output.txt,
abc 8392382222
def 9283923829
ghi 2392832930
Template file,
Pool : 1
Some text
Some text
Some text
name:
no:
London
UK
name:
no:
London
UK
name:
no:
London
UK
Pool : 2
Some text
Some text
Some text
name:
no:
London
UK
name:
no:
London
UK
name:
no:
London
UK
I want to add output lines in template like below
Pool : 1
Some text
Some text
Some text
name: abc
no: 8392382222
London
UK
name: def
no: 9283923829
London
UK
name: ghi
no: 2392832930
London
UK
Pool : 2
Some text
Some text
Some text
name: abc
no: 8392382222
London
UK
name: def
no: 9283923829
London
UK
name: ghi
no: 2392832930
London
UK