fork download
  1. #!/bin/bash
  2. s='14_611646T,C
  3. 14_881226CT,C
  4. 14_861416.1GGC,GGCGCGCGCG'
  5.  
  6. sed 's/\(.*[0-9]\)\([^0-9]\)/\1 \2/' <<< "$s"
  7. sed -E 's/(.*[0-9])([^0-9])/\1 \2/' <<< "$s"
Success #stdin #stdout 0.01s 5304KB
stdin
Standard input is empty
stdout
14_611646 T,C
14_881226 CT,C
14_861416.1 GGC,GGCGCGCGCG
14_611646 T,C
14_881226 CT,C
14_861416.1 GGC,GGCGCGCGCG