g Due to -r flag, list of lines of stdin
Jn Join together on newlines
S( ) All but first character (the initial asterisk)
^ Split on:
n.'* Newline followed by asterisk
^n Split (each of) the results on newlines
We now have a list of lists of lines
{ }M Map this function:
[ ] Return a list containing