aboutsummaryrefslogtreecommitdiff
path: root/etc/f
diff options
context:
space:
mode:
Diffstat (limited to 'etc/f')
-rwxr-xr-xetc/f10
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/f b/etc/f
new file mode 100755
index 0000000..7f541d8
--- /dev/null
+++ b/etc/f
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# f -- fmt with new line for each sentence
+
+fmt "$@" |
+sed 's/\([^ ]\)\. \([^ ]\)/\1.\
+\.temporary line for fmt\
+\2/g' |
+fmt "$@" |
+sed '/^\.temporary line for fmt$/d'