This assistance was helpful, but I am still a bit lost. I'll steal it's super easy format. How to insert the content of a file into another file before a pattern (marker)?
I have two files.
File 1
test
test2
test3
test4
File 2
Numebr of results: 0
Numebr of results: 1
Object Name:
Object UID: {A42CD268-ommitted}
Class Name: referral
last_element: false
referral_info: source
referral_obj: Name: ommitted (Table: ommitted)
scheme_flags: 0
type: member
Numebr of results: 0
Numebr of results: 0
Desired end result (file 3?)
test
Numebr of results: 0
test2
Numebr of results: 1
Object Name:
Object UID: {A42CD268-ommitted}
Class Name: referral
last_element: false
referral_info: source
referral_obj: Name: ommitted (Table: ommitted)
scheme_flags: 0
type: member
test3
Numebr of results: 0
test4
Numebr of results: 0
Looking to read in one line at a time from file1, find the next pattern for "Numebr of results", insert line1 from file1 above the first match and successively iterate through the entire file as such.
Thank you so much in advance!!