How to extract a number from a string using Bash example -

Here a listed few of many ways how to extract number from a string. For all the examples below we will use sentence I am 999 years old. where the aim is to exctract nunber 999. Let's start by using tr command:
This is a companion discussion topic for the original entry at