#!/bin/bashs="AAA_1765 866 HTGAAA_1873 987 IGAAAA_1922 413 BOK" sed 's/^AAA_1[0-9]*/BBB_2/' <<< "$s"
Standard input is empty
BBB_2 866 HTG BBB_2 987 IGA BBB_2 413 BOK
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!