Help with AWK and gsub

Hello,

I have a variable that displays the following results from a JVM....

1602100K->1578435K

I would like to collect the value of 1578435 which is the value after a garbage collection. I've tried the following command but it looks like I can't get the > to work. Any suggestions as to how to get the result?

jvmvalue=` echo $jvmvalue| awk '{gsub(/^[.->]+|[ K),]+$/,"");print}'`

Thanks for your time,

Nick

echo '1602100K->1578435K' | awk -F'>' '{print int($2)}'

That did it. Thanks for the help!

Nick

echo "1602100K->1578435K" | sed 's/\(.*\)->\(.*\)./\2/'
echo "1602100K->1578435K" | sed 's/.*>\(.*\)./\1/'