From 3b88bd8a5e4d40f7f938d002ac10dc981ee43a80 Mon Sep 17 00:00:00 2001 From: "John Ankarstr\\xf6m" Date: Thu, 3 Jun 2021 15:21:41 +0200 Subject: f: Improve sed compatibility --- f | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'f') diff --git a/f b/f index 157c307..7f541d8 100755 --- a/f +++ b/f @@ -3,6 +3,8 @@ # f -- fmt with new line for each sentence fmt "$@" | -sed 's/\([^ ]\)\. \([^ ]\)/\1.\n\.temporary line for fmt\n\2/g' | +sed 's/\([^ ]\)\. \([^ ]\)/\1.\ +\.temporary line for fmt\ +\2/g' | fmt "$@" | sed '/^\.temporary line for fmt$/d' -- cgit v1.2.3