Hello I am new to linux and grep and awk commands.
I am trying to get the number value from this string variable and then store it in another variable.
var1="Version must be incremented on update. Current version is: 532"
var2=var1 | grep "?"
What should I do in order to only retrieve val 532 from the above string and store it in var2