Puede alguien sugerir qué hacer si tengo que leer entre dos palabras claves comoLee las líneas entre dos palabras clave
*System_Power
1
1.2
1.8
2
*System_Terminate
En este caso el asnwer sería
1
1.2
1.8
2
He intentado utilizar 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.
Estaría agradecido por sus correcciones.
que trabajó para mí, pero no soy capaz de encontrar una manera general de sorprender. Cada vez que recibo un nuevo formato de solución que es bastante difícil de digerir. Intentando conseguirlo –