#!/bin/bashs='keyAvalue:124keyBvalue:474keyCvalue:953keyBvalue:155' sed -e '/keyB$/{n' -e 's/\(.*\):[0-9]*/\1:888/' -e '}' <<< "$s"
Standard input is empty
keyA value:124 keyB value:888 keyC value:953 keyB value:888
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!