fork download
  1. #!/bin/bash
  2. s='Cone A-
  3. Ctwo D
  4. Cthree C+'
  5. sed -E 's/\b[[:upper:]]\b[+-]?/X/g' <<< "$s"
Success #stdin #stdout 0s 4636KB
stdin
Standard input is empty
stdout
Cone      X
Ctwo      X
Cthree    X