Text editor, vi에서 문장 끝의 ^M 제거하기

Description
ASCII 파일을 FTP로 UNIX에 전송할 경우, 설정을 binary로 했을 때 발생한다.

Cause

Action 1

/usr/bin/dos2unix before_name.txt after_name.txt

Action 2

lilac:/user/students/oa94052> vi before_name.txt
:%s/ctrl+v+m//g

Leave a Reply

Your email address will not be published. Required fields are marked *