I have had some success (read no noticed problems), moving some text conf files from a Win <cr,lf> format to Linux and have them work. For example my zone files, moving them from my Win DNS server.
But what about other files? I guess I want to know this more to prevent a mistake from crashing things, as I do have GEDIT.
If I were to build an anaconda-ks.cfg in notepad, write it to a floppy then did a linux ks=floppy, would it work?
I have search the archives and google, but either I am missing the right search words, or something.
dos2unix and unix2dos are your friends...
On Tue, 28 Feb 2006, Robert Moskowitz wrote:
I have had some success (read no noticed problems), moving some text conf files from a Win <cr,lf> format to Linux and have them work. For example my zone files, moving them from my Win DNS server.
But what about other files? I guess I want to know this more to prevent a mistake from crashing things, as I do have GEDIT.
If I were to build an anaconda-ks.cfg in notepad, write it to a floppy then did a linux ks=floppy, would it work?
I have search the archives and google, but either I am missing the right search words, or something.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Robert Moskowitz wrote:
I have had some success (read no noticed problems), moving some text conf files from a Win <cr,lf> format to Linux and have them work. For example my zone files, moving them from my Win DNS server.
But what about other files? I guess I want to know this more to prevent a mistake from crashing things, as I do have GEDIT.
If I were to build an anaconda-ks.cfg in notepad, write it to a floppy then did a linux ks=floppy, would it work?
When in doubt, check out the dos2unix and unix2dos utilities
BK
On 2/28/06, Robert Moskowitz rgm@htt-consult.com wrote:
I have had some success (read no noticed problems), moving some text conf files from a Win <cr,lf> format to Linux and have them work. For example my zone files, moving them from my Win DNS server.
But what about other files? I guess I want to know this more to prevent a mistake from crashing things, as I do have GEDIT.
If I were to build an anaconda-ks.cfg in notepad, write it to a floppy then did a linux ks=floppy, would it work?
I have search the archives and google, but either I am missing the right search words, or something.
CHeck out this GLP'd projrct I know it can properly read and display unix "style" text files, and IIRC you can choose how the files are written. http://www.scintilla.org/
Textpad is a non GPL'd alturnative that I know works. http://www.textpad.com/
-- Leonard Isham, CISSP Ostendo non ostento.
On Tue, 2006-02-28 at 14:50, Robert Moskowitz wrote:
I have had some success (read no noticed problems), moving some text conf files from a Win <cr,lf> format to Linux and have them work. For example my zone files, moving them from my Win DNS server.
But what about other files? I guess I want to know this more to prevent a mistake from crashing things, as I do have GEDIT.
If I were to build an anaconda-ks.cfg in notepad, write it to a floppy then did a linux ks=floppy, would it work?
I'm not sure there is a generic answer. Some things ignore the CR's, some don't. It's always a good idea to remove them. On Windows you can edit in wordpad instead of notepad and it will put them back. If you edit in vim (either windows or Linux versions) you can write either way with the: :set fileformat option.
I have search the archives and google, but either I am missing the right search words, or something.
In the old days with real vi, you would: :%s/^v^m// to get rid of them, but vim doesn't like that.