Can you please help me with a sed
command to retrieve '9034' value from these JVM arguments.
-OtherJVM1=value1 -OtherJVM2=value2 -Dserver.port=9034 -Dajp.port=8534
Here is what I have tried:
sed -n -e 's/^.*\(Dserver.port=\)//p'
The above sed command is giving:
9034 -Dajp.port=8534
But I only want '9034', within 1 command.