Thanks to all who replied. The dos2unix and unix2dos things sound like they could be useful. Mary's search and destroy command did the trick. Thanks Mary! Gary E. MacIndoe PCB Design Engineer Advanced Micro Devices, Inc. Longmont, Colorado -----Original Message----- From: Wyllie, Mary [mailto:mwyllie@xxxxxxx] Sent: Monday, November 29, 2004 2:52 PM To: gary.macindoe@xxxxxxx Subject: RE: [PCB_FORUM] Re: Allegro script problem Try ":%s/.$//" Which says replace a single character (the .) before the end of line (the $) with nothing. '%' should cause it to be executed on every line in the file. Also, while these are ugly and you want to get rid of them, they probably aren't the source of the failure. If it fails the first time and then works, I wonder if the error is an undefined variable (does it says something like "unbound variable"?). When you run it again, the variable has been created and is no longer an error. If not, what is the error? Mary