How to extract a number from a string using Bash example - Linux Tutorials - Learn Linux Configuration

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.

This is a companion discussion topic for the original entry at
1 Like

Thank you so much. Helped me a lot