DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
extract numners from string linux
$ NUMBER=$(echo "I am 999 years old." | grep -o -E '[0-9]+') $ echo $NUMBER 999
Source by linuxconfig.org #
PREVIOUS
NEXT
Tagged:
#extract
#numners
#string
#linux
ADD COMMENT
Topic
COMMENT
Name
1+6 =
Submit