我尝试用sed提取数字:
echo hgdfjg678gfdg kjg45nn | sed 's/.*\([0-9]\+\).*/\1/g'
但结果是:5如何提取:678和45?提前致谢!
sed extract digits
digits ×1
extract ×1
sed ×1