Where is the control M character in Unix?

Where is the control M character in Unix?
Answer
Commands
  1. To find ^M (control +M) characters in the file: For single file: $ grep ^M. filename For Multiple files: $ grep ^M * …
  2. To remove ^M (control +M) characters in the file: $ dos2unix filename filename. (dos2unix is the command used to delete ^M characters in the file.
 

Tìm kiếm

Back
Top