miller/docs/h2foo
2020-09-27 23:57:12 -04:00

12 lines
214 B
Bash
Executable file

#!/bin/bash
awk '{
if ($0 ~ /.*<h2>.*/) {
sub(/<h2>/, "");
sub(/<\/h2>/, "");
print;
print "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^";
} else {
print $0
}
}' "$@"