pattern='^id DiaMatch[(]([[:digit:]]+)[)]'while IFS= read -r line; do [[ $line =~ $pattern ]] || continue echo "${BASH_REMATCH[1]}"done
id DiaMatch(044) = Sector(...) id DiaMatch(045) = Sector(...) id DiaMatch(046) = Sector(...)
044 045
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!