fork(4) download
  1. #!/bin/bash
  2. s="say: a[aa] to bbb, not ba[aa]"
  3. sed 's|\<a\[aa]|bbb|g' <<< "$s"
Success #stdin #stdout 0s 4380KB
stdin
Standard input is empty
stdout
say: bbb to bbb, not ba[aa]