aboutsummaryrefslogtreecommitdiff
path: root/ft
diff options
context:
space:
mode:
Diffstat (limited to 'ft')
-rwxr-xr-xft8
1 files changed, 8 insertions, 0 deletions
diff --git a/ft b/ft
new file mode 100755
index 0000000..cc40806
--- /dev/null
+++ b/ft
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# ft -- 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'