echo "ddd 1 test 12345 " | sed 's/[^0-9]//g'

computer2know :: thank you for your visit :: have a nice day :: © 2018