Sometimes you write scripts with errors that are listed like headings, mostly because your script files are edited under Windows. Windows, the end of each line is \n\r, and in Linux under the end of the file is \ n, then you edit the file in Windows under Linux open to see the end of each line will be more than one character \ r, Cat-a Urfile you can see this \ The r character is displayed as a ^m, and it is only necessary to delete this character. You can use the command sed-i ' s/\r$//' urfile. Sometimes you write scripts with errors that are listed like headings, mostly because your script files are edited under Windows. Windows, the end of each line is \n\r, and in Linux under the end of the file is \ n, then you edit the file in Windows under Linux open to see the end of each line will be more than one character \ r, Cat-a Urfile you can see this \ The r character is displayed as a ^m, and it is only necessary to delete this character. You can use the command sed-i ' s/\r$//' urfile.