in reply to need to be able to search/replace by ip and hostname recursively in /etc based off ARG input
Consult perlrun documentation for "-i" switch and backup options when changing a lot of files like this.perl -p -i -e 's/$old_ip/$new_ip/g' /etc/*files_to_change*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: need to be able to search/replace by ip and hostname recursively in /etc based off ARG input
by globalsec23 (Initiate) on Jul 25, 2013 at 15:58 UTC | |
by arkturuz (Curate) on Jul 25, 2013 at 16:17 UTC |