mirror of
https://github.com/pret/pokeplatinum.git
synced 2024-11-26 23:50:36 +00:00
replace.sh: replace all occurences
Without the /g flag, only the first occurence on each line will get replaced.
This commit is contained in:
parent
8f8326ca35
commit
b28150a287
@ -6,4 +6,4 @@ if [ "$1" = "" -o "$2" = "" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
sed -i 's/\<'"$1"'\>/'"$2"'/' $(git grep -Ilwr "$1")
|
||||
sed -i 's/\<'"$1"'\>/'"$2"'/g' $(git grep -Ilwr "$1")
|
||||
|
Loading…
Reference in New Issue
Block a user