fork(8) download
  1. #!/bin/bash
  2. s='AAAAAAA02'
  3. echo $s | sed -E "s|(A{7})[0-9]+|\101|g"
Success #stdin #stdout 0s 19632KB
stdin
Standard input is empty
stdout
AAAAAAA01