I am trying to print out a number next to a string that I search (using shell script).
For ex., my file contains a line
arg = -Xmx4096m
I search the file with string
Xmx and I need the output of next digits attached to the string and nothing else is needed in the output. How can I achieve this?