On Tue, 19 Aug 2003 dsavage@xxxxxxxxxxx wrote: > On Tue, Aug 19, 2003 Thom Paine <admin@xxxxxxxxxxxxxxxxx> wrote: > > Is there a linux text editor that won't break the batch files when I > > edit them from the server for the login scripts that are run in windows? > > If I create a text file with pico, and try to run it from windows, it > > seems broken. I'm not sure what is wrong with it, but it seems like it's > > just one big long line. > > Thom, > > Use the unix2dos utility to convert Unix end-of-line (0x0A) characters to > CR-LF (0x0D 0x0A) pairs in any batch file to be run under DOS or Windows. > > Conversely, be sure to run the dos2unix utility after editing a Unix > script file with a DOS/Windows editor like NOTEPAD. > > For your convenience, versions of unix2dos and dos2unix exist for both > Windows and Linux. You could also just use vim. It is smart enough to not change things unless you tell it to! -- ......Tom Registered Linux User #14522 http://counter.li.org tdiehl@xxxxxxxxxxxx My current SpamTrap -------> mtd123@xxxxxxxxxxxx -- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list