Problem when inserting a new line in a file by using redirection.
Hello,
I use the following command to insert a line at the end of a file.
echo "My sentence" >> myFile
After the execution of this line if I open "myFile" with vi I can see the caracter "^M" in blue at the end of each existing line.
How can I avoid that problem?
Thanks in advance.
Alain.
|