From f7e0e8afd841f2d390f4727be1dd556dcf3f5b07 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 13 Jul 2016 20:16:33 +1200 Subject: Add rfcf(1), rfcr(1), and rfct(1) --- bin/rfct | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 bin/rfct (limited to 'bin/rfct') diff --git a/bin/rfct b/bin/rfct new file mode 100755 index 00000000..ce15d4d7 --- /dev/null +++ b/bin/rfct @@ -0,0 +1,15 @@ +#!/usr/bin/awk -f + +# A record is a paragraph +BEGIN { + RS="" +} + +# Skip any block without at least one alphanumeric char +!/[[:alnum:]]/ { next } + +# Skip any block with a page break marker in it +/ / { next } + +# Print the block followed by two newlines +{ printf "%s\n\n", $0 } -- cgit v1.2.3