Need help capturing end of line numbers

Hello All,

Currently I am attempting to write a script which will capture a number at the end of a line.

The line which I am searching through ends as follows:

word word=number

for example

word word=3

OR

word word=15

I am stuck on how to capture whatever is to the right of the "=" to the end of the line. The number will vary from a single to a double digit number.

Ideally I would like to use this number for further actions downstream.

However currently I am unable to capture this number to the right of the "=" character.

Can someone please input on this? THANKS!!!

while read record
do
     echo "$record" | awk -F'='    '{print $2}' | read last_number
done < filename

I will try that now! thanks!

# more file
word word=3
some more word=56
# awk -F"=" '{print $NF}' file
3
56