Is \d not supported by grep's basic expressions?

Published on with 36 views

size=$(adb shell dumpsys window | grep -Eo 'init=\d+x\d+' | head -1 | cut -d= -f 2)

fix后

size=$(adb shell dumpsys window | grep -Eo 'init=[0-9]+x[0-9]+' | head -1 | cut -d= -f 2)


标题:Is \d not supported by grep's basic expressions?
作者:AllenCoder
地址:http://devcoder.cn/articles/2019/05/28/1559024313865.html

Responses