Today in the installation linux, when the sake of expedience, the direct use Dreamweaver to edit the configuration file, the results have been reported this error. To open in vi-b parameters found with the text at the end of each period of time will automatically add ^ M
long long ago..... Old-fashioned teleprinter to start a new line characters to a carriage move back bit ( Known as a carriage return ,<CR>,ASCII Code 0D), Another character to move up one row ( Known as line breaks , <LF>,ASCII Code 0A). When the advent of the computer, memory was very expensive . Some people assume there's no need to use two characters for EOL .UNIX developers decided that they can be used A character to indicate the end of the line, Linux lineage Unix, It is also <LF>.Apple Developers require the use of the <CR>. MS-DOS and development Windows Of those guys you decided the old-fashioned <CR><LF>. Because MS-DOS and Windows Is carriage return + wrap to represent a new line , Therefore on Linux with Vim View used under Windows VC Write code, after the end of the line "^M" Symbols, represents a break .
1) vi-b back.sh
2)% s / ^ M / / g
/////// NOTE: The above command line in the "^ M" character, not "^" coupled with "M", but by "Ctrl + v", "Ctrl + M"