fork download
  1. #!/bin/bash
  2. s=",11,221951
  3. ,11,221952
  4. ,11,232928
  5. ,11,45
  6. ,11,4
  7. ,11,5
  8. ,11,6
  9. ,11,6"
  10.  
  11. awk -F',' '$3 ~ /^[0-9]{6}$/' <<< "$s"
Success #stdin #stdout 0s 4388KB
stdin
Standard input is empty
stdout
,11,221951
,11,221952
,11,232928