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