This commit is contained in:
Hans Karlinius
2024-12-03 03:45:10 +01:00
parent 80968c383e
commit de2c32727b
2 changed files with 6 additions and 5 deletions

View File

@@ -6,10 +6,6 @@ BEGIN {
edited_row = 0;
}
$0 ~ "^\\[" section "\\]" {
found_section = 1;
}
$0 ~ "^" key "=" {
if (found_section) {
found_key = 1;
@@ -30,10 +26,15 @@ $0 ~ "^\\[" {
}
}
$0 ~ "^\\[" section "\\]" {
found_section = 1;
}
/.*/ {
if(!edited_row) {
print $0;
}
edited_row = 0;
}
END {