SyntaxFix
Write A Post
Hire A Developer
Questions
If you don't mind operating only on initialized submodules, you can use git submodule foreach to avoid text parsing.
git submodule foreach
git submodule foreach --quiet 'echo $name'