>> Delete No. 18303 article
No. [질문]vi에서 :g 커멘드 사용법. ㅜ.ㅜ

등록 2001-01-19 12:20:00 By localhost     조회 1
이름 꼬마늑대    

		kldp에서 찾은 내용입니다만, 적용이 안되더군요. -_-;;
 ==========================================================
파일이 다음과 같은 때 
 # namsh
addr: nam, 222-12345, suwon
# nanin
addr: nan 333-45678, anyang
# nunin
addr: nun 123-65432, seoul
 
전화번호 뒤를 모두 지우고 싶다면 어떻게 하시나요?
 만일 당신이 VI expert라면? 아마도 이렇게... 
:g/^addr:/norm 02f,D
==========================================================
 저두 해봤더니, 
:g/^addr:/norm 02f,D
Sorry, this command is not implemented
Press RETURN or enter command to continue
 help를 보니깐 normal 이라구 되어있더군요. 그래서 다시,
:g/^addr:/normal 02f,D
Sorry, this command is not implemented
Press RETURN or enter command to continue
 혹쉬나 싶어 normal 을 빼보니까,
:g/^addr:/02f,D
No range allowed
Press RETURN or enter command to continue
 우움.. -_-; 왜 안 되는걸까요? -_-;
참고로 제 vi는~
~                              VIM - Vi IMproved
~
~                                version 5.6.11
~                           by Bram Moolenaar et al.
 입니다..  도사님들 좀 갈켜주세염~.  ㅜ.ㅜ
 :g커멘드 응용하면 별 거 까지 다 vi로 할 수 있지 싶은데.. ;;
 아웅. 어려버라.. -_-;--                        May the force be with you..
[관리자] 패스워드를 입력 하십시오. 답장이 존재하면 함께 삭제됩니다.[ 목록 | 이전 ]
패스워드:    

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved