perl -i -pe 's/example\.com/12\.34\.56\.78/~example/g' * [download]
In reply to Replace text - includes tilde sign? by bobafifi