Git diff parse en shell script

git diff diff --git a/lids b/lids index 1191247..2b2f2e1 100644 --- a/lids +++ b/lids @@ -1,2 +1,2 @@ 1 -2 +3 git diffdiff --git a/lids b/lids index 1191247..2b2f2e1 100644 --- a/lids +++ b/lids @@ -1,2 +1,2 @@ 1 ~ -2 +3 ~ 

Necesito solo -2 y +3 ¿Cómo hacer eso usando grep o shell script?

Pipe la salida en

 grep '^[+-][0-9]' 

Asi que:

 diff --git a/lids b/lids | grep '^[+-][0-9]'