aboutsummaryrefslogtreecommitdiff
path: root/ft
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-05-20 03:08:12 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-05-20 03:08:12 +0200
commit41ad303ad1c2812ebe00d8880d136ad3ab44d5ab (patch)
tree142e19f5962c3d3b1a615158d9b3b64663806988 /ft
parent247f473497615712c0de1bd37549c8f799edb285 (diff)
downloadxutil-41ad303ad1c2812ebe00d8880d136ad3ab44d5ab.tar.gz
Add 'ft' utility
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'