If you, like me, are trying to split mbox file from Google Takeout, this is what I used:
awk '/^From / { file = $2 ".eml"; next } {print > file}' ../download.mbox