aboutsummaryrefslogtreecommitdiff
path: root/bin/rfct.awk
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-16 19:54:57 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-16 19:57:58 +1200
commit481f4fa397bbdadcba7d7e6f93f3e058268a95b2 (patch)
tree7c01924feb4f58c038c9f05dabea00f85314116b /bin/rfct.awk
parentRemove .m4 from suffixes (diff)
downloaddotfiles-481f4fa397bbdadcba7d7e6f93f3e058268a95b2.tar.gz
dotfiles-481f4fa397bbdadcba7d7e6f93f3e058268a95b2.zip
Move awk scripts into shb(1)
Diffstat (limited to 'bin/rfct.awk')
-rw-r--r--bin/rfct.awk14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/rfct.awk b/bin/rfct.awk
new file mode 100644
index 00000000..b815deb8
--- /dev/null
+++ b/bin/rfct.awk
@@ -0,0 +1,14 @@
+
+# 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
+/\x0c/ { next }
+
+# Print the block followed by two newlines
+{ printf "%s\n\n", $0 }