fork(2) download
  1. #!/bin/bash
  2. s="AAA_1765 866 HTG
  3. AAA_1873 987 IGA
  4. AAA_1922 413 BOK"
  5.  
  6. sed 's/^AAA_1[0-9]*/BBB_2/' <<< "$s"
  7.  
Success #stdin #stdout 0s 19632KB
stdin
Standard input is empty
stdout
BBB_2 866 HTG
BBB_2 987 IGA
BBB_2 413 BOK