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. |
Are you getting the ^M characters at the end of every line? If so have a look at this thread.
|
thanks, thats going to be handy!
|
For Windows, download Textpad. Then for future scripts save your text files for the OS you desire.
|
NoteTab Lite is pretty good too.
http://www.notetab.com/ |
All times are GMT -5. The time now is 03:06 PM. |