Change names of notes in bulk

I have a datebase full of text files in the form “Firstname Lastname”. I would like to switch them all to the form “Lastname, Firstmame” without the hassle of doing it all manually. Is this possible?



I’ve already been used to firstname, lastname formal for a month now. If there is a possible to switch this, I would also like to know.