The command format of the text is replaced and how to remove ^ m

xiaoxiao2021-03-06  22

: 1. $ S / PATTERN / Replacement / g $ refers to the last line, and the last G is all replaces all the Pattern all appearing, otherwise only the first one is replaced.

Remove ^ M: 1, $ S / ^ m // g ^ m Use Ctrl-V, Ctrl-M input can also be used in the shell: Cat FileName | Tr -d '/ 015'> Newfile or SED - E 'S /. $ //' mydos.txt> Myunix.txt

转载请注明原文地址:https://www.9cbs.com/read-57243.html

New Post(0)