I am trying to create a string array of my modified git files so I can use them in a bash program. Sample output:
On branch restructured
Your branch is up-to-date with 'origin/restructured'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: path/to/file1
modified: path/to/file2
I'm tryig to grab the text after modified:
but from what I've found grep doesn't support new line so i'm at a loss how I could convert the raw output into something I could work with.