#!/bin/bashs='a chair x 0 ya table x 0 ya window x 0 ya computer x 0 y' awk '$2 == "window" && $4 == "0"{$4=111}1' <<< "$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!