note
fletcher_the_dog
From the command line you could just do:
<CODE>
perl -p -i -e 's/^(.*?)\s*(\w+)\s*$/$2, $1\n/' list.txt
</CODE>
<B>Update</B>
This is making the assumption that the names are on different lines, if they are on the same line then you are going to have a very hard time determining where one name ends an another begins
356040
356040