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..