Lea líneas entre dos palabras clave
¿Puede alguien sugerir qué hacer si tengo que leer entre dos palabras clave como
*System_Power
1
1.2
1.8
2
*System_Terminate
En este caso, la respuesta sería
1
1.2
1.8
2
Intenté usar awk como
awk '$0 =="*System_Power" # start printing when 1st field is *System_Power
$0 != "*System_Terminate"{ # until reach the *System_Terminate
print; } ' powerSummary > reportedFailure.k # Read from file powerSummary and pipe to reportedFailure.k
exit
donde los datos anteriores se encuentran en algún lugar en el medio del archivo powerSummary.
Agradecería sus correcciones.