fork(1) download
  1. #!/bin/bash
  2. s='PANO_20190917_185957.jpg
  3. BURST20201216180114905_COVER.jpg
  4. BURST20201214164624071_COVER.jpg
  5. IMG_20190317_112951.jpg
  6. IMG_20190317_112939.jpg
  7. IMG_20190317_112936.jpg
  8. IMG_20190317_112947.jpg
  9. IMG_20200326_013746.jpg'
  10. sed -n 's/[^0-9]*\([0-9]\{6\}\).*/\1/p' <<< "$s"
Success #stdin #stdout 0s 4872KB
stdin
Standard input is empty
stdout
201909
202012
202012
201903
201903
201903
201903
202003