#!/bin/bashs='dogcatremote_addrs = 1.1.1.1mooseremote_addrs = 2.2.2.2woodchuck' sed -z 's/remote_addrs.*/remote_addrs = 3.3.3.3/2m' <<< "$s"
Standard input is empty
dog cat remote_addrs = 1.1.1.1 moose remote_addrs = 3.3.3.3 woodchuck
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!