perl -p -i -e 's/^(.*?)\s*(\w+)\s*$/$2, $1\n/' list.txt [download]
In reply to Re: changing full name to last, first mid by fletcher_the_dog in thread changing full name to last, first mid by NodeReaper