#!/bin/bashs='HG1005 HG1005HG1006 HG1006HG1007 HG1007NA1008 NA1008NA1009 NA1009'awk '{gsub("NA","HG")}1' <<< "$s"
Standard input is empty
HG1005 HG1005 HG1006 HG1006 HG1007 HG1007 HG1008 HG1008 HG1009 HG1009
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!