mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-10-09 21:53:40 +00:00
11 lines
171 B
Bash
Executable File
11 lines
171 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
if [ $# -ne 2 ] ; then
|
|
echo "Need <OLD> and <NEW> as arguments" >&2
|
|
exit 1
|
|
fi
|
|
old=$1
|
|
new=$2
|
|
|
|
git grep -l "$old" | xargs sed -i -e "s,$old,$new,g"
|