aboutsummaryrefslogtreecommitdiff
path: root/f
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-05-20 13:13:19 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-05-20 13:13:30 +0200
commit483a7f3168793fc8980727f417b1e8087eed4fa3 (patch)
treed85ae1f44d8887241b04f7e08c709be5c927e8a8 /f
parent41ad303ad1c2812ebe00d8880d136ad3ab44d5ab (diff)
downloadxutil-483a7f3168793fc8980727f417b1e8087eed4fa3.tar.gz
Rename 'ft' to 'f'
It is such a commonly used utility that it might as well be as easy to type as possible.
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'