I'm trying to
- Get a range in file_1 that matches the string 'start' and 'end' with regexp (assume there's only one 'start' and one 'end' in the whole file)
- Replace that multi-line range with the whole file_2
Note:
Found this example: SED: copy lines from a file to specific line in another file
And tried this: sed -i "" "/start/,/end/r<(sed '1,2!d' file_2)" file_1
And got this feedback in terminal: event not found: d