2
\ D não é suportado pelas expressões básicas do grep?
Isso não gera nenhuma saída. Por quê? $ echo 'this 1 2 3' | grep '\d\+' Mas estes fazem: $ echo 'this 1 2 3' | grep '\s\+' this 1 2 3 $ echo 'this 1 2 3' | grep '\w\+' this 1 2 3