fork(1) download
  1. #!/bin/bash
  2. log="GET /pub/data/nccf/com/hiresw/prod/hiresw.20180921/hiresw.t00z.nmmb_2p5km.f25.conus.grib2"
  3. sed 's/.*nmmb_2p5km[^0-9]*\([0-9]*\)[^0-9]*grib2.*/\1/' <<< "$log"
  4. grep -Po 'nmmb_2p5km\D*\K\d+' <<< "$log"
Success #stdin #stdout 0s 19632KB
stdin
Standard input is empty
stdout
25
25