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'