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