From 9b636ceae523929a6eabc8343227970e215dbb91 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 9 Oct 2016 23:21:34 +0300 Subject: replace_word: bugfix --- %HOME%/.bash_utils/text.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '%HOME%/.bash_utils') diff --git a/%HOME%/.bash_utils/text.sh b/%HOME%/.bash_utils/text.sh index ad3f203..1ce36a6 100644 --- a/%HOME%/.bash_utils/text.sh +++ b/%HOME%/.bash_utils/text.sh @@ -36,7 +36,7 @@ replace_word() ( local old="$1" shift - local new="$2" + local new="$1" shift sed --binary --in-place "s/\\b$old\\b/$new/g" "$@" -- cgit v1.2.3