Loading search index…
No recent searches
No results for "Query here"
This should really not be a thing to have to do, but it’s a small home lab.
old_ip="[ old_ip ]"; new_ip="[ new_ip ]"; \ grep -rlE "\b${old_ip//./\\.}\b" . | xargs -d '\n' -r sed -i.bak "s/\b${old_ip//./\\.}\b/${new_ip}/g"