IFS=: cat < $i" git grep -l "allows to $v" >files [ -s files ] && xargs perl -i.bak -pe "s/allows to $v\b/allows $i/g"