I have copied files from Windows.
In Vi I see ^M that don’t allow work.
AFAIK this is problem with moving files from Windows to Linux.
Does it possible to fix?
Thanks.
I have copied files from Windows. In Vi I see ^M that don’t allow
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are using vim (enhanced vi editor) you can do it right in the editor:
and voila 🙂
Otherwise if you have the
dos2unxutility installed then you can use that to remove the^M(\r):Otherwise you can use GNU sed which understands \r substitutions: