Develop
2021.02.03 16:40
[vim] vim 명령으로  문자 제거하기 (remove 65279 bomb)
조회 수 1349 댓글 0
웹 페이지를 만들다 보면 아무 이유 없이 공백이 생기는 경우가 있다.
디버거를 통해 확인하면 코드에 없는 "" 이런 이상한 문자가 포함되어 자리를 차지하고 있는 것..
인코딩 문제로 에디터에서도 보이지 않아서 삭제할 수도 없고 ㅠㅠ;
근데 이거 이렇게 vim 명령어로 제거할 수 있다.
$ vim --clean -c 'se nobomb|wq' filename
$ vim --clean -c 'bufdo se nobomb|wqa' filename1 filename2 ...
[출처] https://unix.stackexchange.com/questions/381230/how-can-i-remove-the-bom-from-a-utf-8-file
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
405 | Etc | [link] 유용한 사이트 링크. | hooni | 2013.08.19 | 71546 |
404 | System/OS | [linux] /etc/fstab 설정 방법.. ㅋㅋ | hooni | 2013.04.23 | 12140 |
403 | System/OS | [linux] apache, php, jsp 환경설정하기.. | hooni | 2003.04.23 | 15295 |
402 | System/OS | [linux] APM(apache, php, mysql) + gd 설치순서.. | hooni | 2003.04.23 | 18920 |
401 | System/OS | [linux] awk 명령어 | hooni | 2014.03.11 | 5028 |
400 | System/OS | [linux] CentOS 6.5 에서 "Bringing up interface eth0: Determining if ip address 121.78.127.197 is already in use for device eth0..." | hooni | 2014.04.05 | 4954 |
399 | System/OS | [linux] CentOS 6.x Cati 설치 (yum) | hooni | 2014.01.17 | 48656 |
398 | System/OS | [linux] CentOS Apache Httpd에 https 적용 | hooni | 2014.03.05 | 4576 |
397 | Develop | [linux] CentOS Apache 웹서버에 HTTPS 적용 | hooni | 2015.10.23 | 907 |
396 | System/OS | [linux] CentOS 에 APM 설치하기 | hooni | 2015.01.02 | 1899 |
395 | System/OS | [linux] CentOS 터미널 언어 설정(한글/영어) | hooni | 2013.12.22 | 18615 |
394 | Develop | [linux] crond 사용법.. ㅋㅋ | hooni | 2013.04.23 | 7264 |