fork(1) download
  1. #!/bin/bash
  2. s='Sims, J- PF 45
  3. Samanic, L- PF 91
  4. Noel, N- C 3'
  5. sed -E 's/^([^,]+), ([[:upper:]])[^0-9]*([0-9]+).*/uniform number for \2. \1: \3/' <<< "$s"
Success #stdin #stdout 0.01s 5464KB
stdin
Standard input is empty
stdout
uniform number for J. Sims: 45
uniform number for L. Samanic: 91
uniform number for N. Noel: 3