How do I remove junk characters in Unix?

Vy Bùi

New member
How do I remove junk characters in Unix?
Answer
Different ways to remove special characters from UNIX files.
  1. Using vi editor:-
  2. Using command prompt/Shell script:-
  3. a) Using col command: $ cat filename | col -b > newfilename #col removes the reverse line feeds from input file.
  4. b) Using sed command: …
  5. c) Using dos2unix comand: …
  6. d) To remove the ^M characters in all files of a directory:
21 дек. 2013 г.
 

Tìm kiếm

Back
Top