|
Re: LF (ASCII 10) only (no CR)
"LF" is the normal Unix/Linux convention, and should be the default with any text editor run in Fedora (unless opening a file which already uses another line ending convention). "CR+LF" is for DOS/Windows, and "CR" alone for Mac OS (< OS X anyway, I'm not sure what OS X does, it being a Unix derivative). Unicode/UTF-8 technically complicate things further, but that's rarely an issue in practise.
Different text editors have their own methods for overriding defaults. For example, in Vim I could type ":set ff=unix" before saving a file I want to convert to LF-only line endings. GEdit also has a drop-down menu in its save dialogue window (see the attached screen-shot).
The terminal commands dos2unix, mac2unix, unix2dos and unix2mac convert existing files. See jpollard's post and link for more information on the dos2unix package.
Last edited by Gareth Jones; 9th May 2012 at 01:20 AM.
|