I have a bunch of text files. Some changes were introduced. I need to get the list of line numbers in the original files where changes (any, editing/deletion/insertion) happened. I need it to only be line numbers, no actual changes in the text allowed to be shown.
I can put files into two folders or create git repo for with two commits for it.
I tried to use git diff but failed to find appropriate option. What are my other options?
EDIT:
I used git diff -U0 | egrep "^\+{3}|^@@" | grep -Eo '^\+.*|^@@ [-0-9,]*'