aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.bash_utils/text.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/.bash_utils/text.sh b/.bash_utils/text.sh
index cb34073..71ee38c 100644
--- a/.bash_utils/text.sh
+++ b/.bash_utils/text.sh
@@ -35,7 +35,9 @@ replace_word() (
fi
local old="$1"
+ shift
local new="$2"
+ shift
- shift && shift && sed --binary --in-place "s/\\b$old\\b/$new/g" "$@"
+ sed --binary --in-place "s/\\b$old\\b/$new/g" "$@"
)