Modify an xml server on several servers
问题 I asked Previously how to replace statement in xml file <app-connector port="${APP_CONNECTOR_PORT}" address="192.168.0.254" By <app-connector port="${APP_CONNECTOR_PORT}" address="0.0.0.0" Someone Helped me by giving a sed command which works in single host. sed -i '/<app-connector port="${APP_CONNECTOR_PORT}" address="192.168.0.254"$/s/192.168.0.254/0.0.0.0/' file So Now the question is to apply this to serveral hosts in text file: 192.168.0.1 192.168.0.2 192.168.0.3 192.168.0.4 192.168.0.5