LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Windows text file (https://www.linuxquestions.org/questions/linux-general-1/windows-text-file-58931/)

BoldKiller 05-09-2003 02:29 PM

Windows text file
 
I have run in a bit of a proble.

I have written a shell script on a windows machine (was not at home, had only linux under the hand). When it was finished, I uploaded it via FTP.

No back on the linux boc, I try to run the script. It did not worked due to the presence of the 2nd end of line caractere used by windows. (CR LF for windows VS CR only for linux) (think it's CR I smetime mix them up)

Anyway, is there a quick way to suppres all of these from the script?? I mean other then rewriting. I'm using vim at command line.

thank you.

Crashed_Again 05-09-2003 02:34 PM

Are you getting the ^M characters at the end of every line? If so have a look at this thread.

BoldKiller 05-09-2003 02:57 PM

thanks, thats going to be handy!

Electro 05-09-2003 03:43 PM

For Windows, download Textpad. Then for future scripts save your text files for the OS you desire.

david_ross 05-09-2003 03:45 PM

NoteTab Lite is pretty good too.
http://www.notetab.com/


All times are GMT -5. The time now is 03:06 PM.