fork download
  1. pattern='^id DiaMatch[(]([[:digit:]]+)[)]'
  2. while IFS= read -r line; do
  3. [[ $line =~ $pattern ]] || continue
  4. echo "${BASH_REMATCH[1]}"
  5. done
Success #stdin #stdout 0.01s 5476KB
stdin
id DiaMatch(044) = Sector(...)
id DiaMatch(045) = Sector(...)
id DiaMatch(046) = Sector(...)
stdout
044
045