I have an curl output as below and i need to grep only the numbers from that output.
Curl Output
<h1>JVM</h1><p>Free Memory:2144.78 MB Total Memory:3072.00 MB Max Memory:3072.00 MB</p><table border="0">
Grep Command
grep -o -i 'Max Memory:.*' | awk '{ print $3 }'
Output
MB</p><table
Expected Output : 3072.00
Similarly for Free Memory and Total Memory.
Please help