If you are running a linux gui then you can use a program called nedit..I
use it under rh6.2 to edit my smb log on scripts which need to have the dos
style endings.nedit allows you to save files in this manner.
You can get it here
http://nedit.org/
At 05:21 AM 4/19/00, you wrote:
> > Patrick Rhodes wrote:
> >
> > I have text file in Linux that I need converted to Windows. From what
> > I understand, I need to add an extra carriage return or line feed at
> > the end of each line to read it properly in Windows. I can't figure
> > out how to do this and I've been looking at the 'sed' at 'tr'
> > commands. I'm sure the answer is in there, but I'm unable to figure
> > it out as of yet. Can anybody help me with this? Any and all
> > information is appreciated. Thanks!
> >
> > Patrick
>
>Put the following into a file and make it executable:
>
>#!/usr/bin/perl -pi
>
>s/\012/\015\012/g;
>
>then, use it thusly (assuming you call it line_endings):
>
>line_endings <program to convert>
>
>Or, you can use vim (vi), to edit the file, and type this in command
>mode:
>
>:set fileformat=dos
>
>Good luck!
>
>--
>- Doug
>
>"A synonym is a word you use when you can't spell the
>word you first thought of."
>--Burt Bacharach
>
>
>_______________________________________________
>Plug-discuss mailing list - Plug-discuss@lists.PLUG.phoenix.az.us
>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
---Anthony Hologounis---
mail to:
ahologounis@home.com
ICQ: 49021596
http://members.home.com/ahologounis
http://24.6.161.101
Cell 602-702-9472
Pager 602-360-4002
VOICE/FAX 602-494-7247