aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sh
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-04-07 14:33:22 -0500
committerToby Vincent <tobyv@tobyvin.dev>2024-04-07 14:33:22 -0500
commit12e977aa6ef7bc59dde88b8a9fc4893aa10993c0 (patch)
treef88dda250cf44c0f9a2e25b1c085109f0b448fbf /sh
parentef4c38dbf7746bcf55a98f69b0db13f975b2d1c5 (diff)
feat(sh): add alias for reading rfcs using less
Diffstat (limited to 'sh')
-rwxr-xr-xsh/.local/bin/lessfilter6
1 files changed, 6 insertions, 0 deletions
diff --git a/sh/.local/bin/lessfilter b/sh/.local/bin/lessfilter
new file mode 100755
index 0000000..661a638
--- /dev/null
+++ b/sh/.local/bin/lessfilter
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+case "$1" in
+*/rfc/txt/rfc*.txt) sed -e '1,+2d' -e '/\f/d' "$1" ;;
+*) exit 1 ;;
+esac