Agregue texto entre dos patrones en el archivo usando el comando sed
Quiero añadir un código grande entre dos patrones:
File1.txt
This is text to be inserted into the File.
infile.txt
Some Text here
First
Second
Some Text here
Quiero agregarFile1.txt contenido entreprimero ySegundo :
Salida deseada:
Some Text here
First
This is text to be inserted into the File.
Second
Some Text here
Puedo buscar usando dos patrones con el comando sed, pero no tengo idea de cómo agregar contenido entre ellos.
sed '/First/,/Second/!d' infile