#!/bin/sh
pattern="$1"
replacement="$2"
shift
git grep --ignore-case --files-with-matches --null "$pattern" | xargs --null --no-run-if-empty sed -i "s!$pattern!$replacement!g"
