aboutsummaryrefslogtreecommitdiff
path: root/bin/rfct
diff options
context:
space:
mode:
Diffstat (limited to 'bin/rfct')
-rwxr-xr-xbin/rfct15
1 files changed, 15 insertions, 0 deletions
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 }