In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article will explain in detail how to analyze the problem of DOS newline characters. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
A file copied to the Linux system on windows today did not notice the problem of newline characters, which caused a batch problem all the time.
A document copied especially through notepad.
First of all, check the cat-v file.txt to enter the following newline characters
UrrtIU56567= KoiH8IO188 ^ M
KymMPuAGuwBlqSWsWvK0 ^ M
^ M is the newline symbol with
$dos2unix-k killws remove the newline character
$cat-v file.txt
UrrtIU56567=koiiH8IO188
KymMPuAGuwBlqSWsWvK0
Or sed-I's / ^ M / / g 'file.txt
Or directly vim file.txt input set ff=unix. Save and exit!
Last
Dos2unix [- kn] file [newfile] converts from DOS to UNIX
Unix2dos [- kn] file [newfile] converts from UNIX to DOS, that is, WINDOWS
This is the end of the problem analysis on how to carry out DOS newline characters. I hope the above content can be of some help to you and can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.