How to delete each line in a text file in batches under mac ^M
Original link: https://blog.kelu.org/tech/2023/05/30/how-to-remove-m-from-each-line-in-text-files-in-macos.html I compared the code sent by my windows colleague from Mac, git diff shows that many files have changed, and each line is displayed as modified, which seriously affects the diff function. Initially, we tried to use the sed command to strip the “^M” character at the end of each line, but […]
How to delete each line in a text file in batches under mac ^M Read More »