commit | ce139f9887e5f5403cf2ff367722ac12aa050fea | [log] [tgz] |
---|---|---|
author | Andrii Nakryiko <andrii@kernel.org> | Tue Sep 14 21:14:13 2021 -0700 |
committer | Daniel Borkmann <daniel@iogearbox.net> | Wed Sep 15 10:38:47 2021 +0200 |
tree | 8d6737355c5375d789d495dae62e3e985bbfba2a | |
parent | 1867a92570347493d96a1169d38b4cca90ff2d12 [diff] |
pw-apply: Use awk for multi-line subject line extraction Instead of using experimental `grep -P` which doesn't work in some distros, do it with line-by-line AWK script which collects all line beginning with the line that starts with "Subject: " and ending before hitting the line starting with another "<keyword>: ". This works for single-line and multi-line subjects. Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>