My sub-directory has multiple .git repo. To Find them I am using:
$ echo **/.git demo-component-a/.git demo-component-b/.git
Now I actually need the parent directories.
I found this neat feature to find the parent of a path:
$ var=/home/blueray/Documents/antora/demo-component-b $ echo $var:h /home/blueray/Documents/antora
Now I am trying to combine these two.
I have tried the following:
$ echo $(echo **/.git):h demo-component-a/.git demo-component-b/.git:h
This is not what I want. What can be done here?