diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-06-07 11:53:42 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-06-07 11:54:01 -0400 |
commit | 6e61f58d8684ae8879482d371219d8ae5c00a39d (patch) | |
tree | 0df30b81471485779433e86457062a5cf2fcd0d2 /contrib/plaintext | |
parent | 0647ea64839df5ceecf3a71f672f05a589fd1409 (diff) | |
download | aerc-6e61f58d8684ae8879482d371219d8ae5c00a39d.tar.gz |
Rewrite Python filters in awk
Diffstat (limited to 'contrib/plaintext')
-rwxr-xr-x | contrib/plaintext | 13 |
1 files changed, 13 insertions, 0 deletions
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 + } +} |