#!/bin/bashs='a chair x 0 ya table x 0 ya window x 0 ya computer x 0 y' sed -E 's/^(\S+\s+window\s+\S+\s+)0(\s)/\1111\2/' <<< "$s"
Standard input is empty
a chair x 0 y a table x 0 y a window x 111 y a computer x 0 y
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!