Cree un script ejecutable test.awk, que contenga
awk '
# { print "read " $0 }
/^SYS/ {
if (H) {
if (F) {print F} else { F="\r\n\r\n"}
print H; H=""}
print
next
}
/^./ {
H=$0
for (i=1; i<5; i++) {
getline
H = H "\r\n" $0
}
next
}
' $@
y ejecutar
test.awk original_output.txt
"/^SYS/ {" se puede reemplazar por cualquier cosa que reconozca una línea de datos.
Автор вопроса нашел следующее решение.
Shortcut Super+D made GNOMEs windows unfrozen so in similar cases this should be helpful.