I don't understand what you want to do yet
You only want to include some names in lua later but want the complete CSV formatted? If so then it could easily be done with RegEx in Notepad++
What format do you need it (IDs etc or just names), I could dump you the files