Commit 460d9b00 authored by User expired's avatar User expired
Browse files

Escape curly brackets in awk regular expressions

parent dc56b69a
......@@ -56,7 +56,7 @@ BEGIN {
matched=0
}
/^[A-Za-z]+ *{/ {
/^[A-Za-z]+ *\{/ {
if ($1 ~ pattern) {
# Print newlines lost by splitting.
if (matched > 0) { print "\n"; }
......
......@@ -81,7 +81,7 @@ BEGIN {
}
}
/^[A-Za-z]+ *{/ {
/^[A-Za-z]+ *\{/ {
if (did_write) {
# Print newlines lost by splitting except for the last record.
print "\n\n" >> outfile
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment