aboutsummaryrefslogtreecommitdiff
path: root/f
blob: 157c3070d11f0d43b56a32b882e37c1210889f69 (plain)
1
2
3
4
5
6
7
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'