Answers for "extract numners from string linux"

1

extract numners from string linux

$ NUMBER=$(echo "I am 999 years old." | grep -o -E '[0-9]+')
$ echo $NUMBER
999
Posted by: Guest on October-03-2020
0

extract numners from string linux

echo 'Insert completed. 100 rows added ' | awk '{print $(NF-2)}'
Posted by: Guest on October-03-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language