명령모드에서 모든줄의 첫 번째 문자를 첫번째 문자를 포함하여 다른문자로 치환하려면 어떻게 해야 하는지 궁금합니다. 예를 들어 01 02 03 . . . 99
가 쓰여진파일의 첫줄에 a라는 문자를 삽입하려면 어떻게 하는지 부탁드립니다.
맨 앞을 a로 바꾸시오 라고 하면 다 바뀝니다. --------------------------------- There's always another way, dear.
--------------------------------- There's always another way, dear.
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
%s/^/a/g
맨 앞을 a로 바꾸시오 라고 하면 다 바뀝니다.
---------------------------------
There's always another way, dear.
---------------------------------
There's always another way, dear.
댓글 달기