I changed the write -al to -l. I caught that after I had posted. I'm still not totally sure what the script is doing. Some problems I have noticed is that it is supposed to echo how many tokens were fixed, and it always says 0. But when I look in the file, it appears that sometimes tokens are gone, because I can see double commas. I just looked over the file this morning, and another problem is that it is writing spaces after the commas. Thanks for any help. I know it's alot to look at, but I can't seem to fix it.