I have several .screen files inside /xxx/documentation
and its subdirectories that are already tracked by Git.
After modifying many of these screen files, I
This what I just used for a similar problem of git adding all the files in a directory:
find . | sed "s/\(.*\)/\"\1\"/g" | xargs git add
For the original question the command would be:
find -name "*.screen" | sed "s/\(.*\)/\"\1\"/g" | xargs git add
Note that I'm dealing with the case where a fully specified file name contains spaces. Thats why my answer. Edit the portion before the first |
in order to pick out different files to add.