In that unfortunate case, a trip through both utilities will usually clean up the file to be internally consistent. If available, they are the best answer because they (usually, see your verson's man pages for details) are careful about files that are accidentally written with both line endings. These are commonly available, either as a component of a commercial Unix or as open source tools. On the Unix (Linux) side, look for a utility named unix2dos and its close relative dos2unix. And, it suggests a variety of solutions to this problem specifically for use on the Unix side or the Windows side. The Wikipedia article on the Newline has a decent overview of the historical context. Line separators and line terminators have been a source of compatibility friction between systems as long as there has been more than one kind of system and an urge to exchange data.
0 Comments
Leave a Reply. |