From 6e61f58d8684ae8879482d371219d8ae5c00a39d Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 7 Jun 2019 11:53:42 -0400 Subject: Rewrite Python filters in awk --- contrib/plaintext | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 contrib/plaintext (limited to 'contrib/plaintext') diff --git a/contrib/plaintext b/contrib/plaintext new file mode 100755 index 0000000..82fe57e --- /dev/null +++ b/contrib/plaintext @@ -0,0 +1,13 @@ +#!/bin/awk -f +BEGIN { + dim = "\x1B[2m" + cyan = "\x1B[36m" + reset = "\x1B[0m" +} +{ + if ($0 ~ /On .*, .* wrote:/ || $0 ~ />+/) { + print dim cyan $0 reset + } else { + print $0 + } +} -- cgit v1.2.3