Search: This Site | People | Departments | Penn State  
Penn State Home Page Population Research Institute Home Page
  contact PRI news directory sitemap home

SSRI Home Page PRI Home Page

What are the ^M characters in my file or how to use dos2unix?


  DOS files use a different set of control characters for the end of a line. To convert between DOS and Unix files, there are 2 commands: dos2unix and unix2dos

 Here is how to use them:

 

    dos2unix -ascii dos_file.dat unix_file.data
    unix2dos -ascii unix_file.data dos_file.dat


Click Here To Go Back To Main Unix Page

Last modified: 10/26/01 | Contact Webmaster
Privacy and Legal Statements | Copyright Information | ©Copyright 2006, The Pennsylvania State University |