(How to convert a Windows/DOS file into a UNIX file)
(Related Resources)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<seo title="Windows/DOS and UNIX Text Files  | vEdit" description="With vEdit you can quickly read and edit Windows/DOS and UNIX Text Files and convert Windows to UNIX and UNIX to Windows in a few simple steps."></seo>
+
<seo title="Convert Windows and UNIX Text Files  | vEdit" description="With vEdit you can quickly read and edit Windows/DOS and UNIX Text Files and convert Windows to UNIX and UNIX to Windows in a few simple steps."></seo>
{{DISPLAYTITLE:Windows/DOS and UNIX Text Files}}
+
{{DISPLAYTITLE:Convert Windows and UNIX Text Files}}
  
 
Each line in a Windows/DOS text file normally ends in both a Carriage-Return and Line-Feed character; this <CR><LF> pair is considered the normal “newline” character even though it really is two characters. At the end of a line, Pressing the <kbd>Delete</kbd> key once deletes the '''<CR><LF>''' pair. Similarly, pressing the <kbd>Enter</kbd> key (in Insert mode) inserts a '''<CR><LF>''' pair.
 
Each line in a Windows/DOS text file normally ends in both a Carriage-Return and Line-Feed character; this <CR><LF> pair is considered the normal “newline” character even though it really is two characters. At the end of a line, Pressing the <kbd>Delete</kbd> key once deletes the '''<CR><LF>''' pair. Similarly, pressing the <kbd>Enter</kbd> key (in Insert mode) inserts a '''<CR><LF>''' pair.
Line 25: Line 25:
 
*[[Binary_Text_File_Types|Binary/Data and Text File Types]]
 
*[[Binary_Text_File_Types|Binary/Data and Text File Types]]
 
*[[Convert_Windows_Mac_Linux|Convert Between Windows, Mac and Linux File Types]]
 
*[[Convert_Windows_Mac_Linux|Convert Between Windows, Mac and Linux File Types]]
 +
*[[Main_Page#section-editing|Edit EBCDIC, ASCII, ANSI, Hex, Text and Multiple Files]]
 +
*[[Main_Page|Wiki Home]]

Latest revision as of 16:54, 20 February 2017


Each line in a Windows/DOS text file normally ends in both a Carriage-Return and Line-Feed character; this <CR><LF> pair is considered the normal “newline” character even though it really is two characters. At the end of a line, Pressing the Delete key once deletes the <CR><LF> pair. Similarly, pressing the Enter key (in Insert mode) inserts a <CR><LF> pair.

If a text line ends in just a Line-Feed when the file type is set to “0=DOS text”, <LF> is displayed at the end of the line. Such a line may be corrected by deleting the lone <LF> by pressing the Delete key and then inserting the <CR><LF> pair by pressing Enter.

UNIX text files normally have lines ending in just a Line-Feed character, which is therefore the “newline” character. Pressing the Enter key inserts only the Line-Feed character. Carriage-Return characters have no special meaning, and are displayed as <CR>.

How to Convert a Windows/DOS File into a UNIX File

  1. To convert the entire file, select BLOCK > Select all ( Ctrl-A ) to block highlight the file.
  2. Select EDIT > Convert > Win/DOS to UNIX. The block/file is now converted.

More info over converting Windows to UNIX.

How to convert a UNIX file into a Windows/DOS file

  1. To convert the entire file, select BLOCK > Select all ( Ctrl-A ) to block highlight the file.
  2. Select EDIT > Convert > UNIX to Win/DOS. The block/file is now converted.

More info over converting UNIX to Windows.

Related Resources