2007. 11. 3. 20:40 Unix
vi에서 출력결과 읽어들이기
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
UNIX GURU UNIVERSE
UNIX HOT TIP
Unix Tip 2744 - July 8, 2007
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
출력결과 읽기
vi에서 다음을 입력하라:
:r !my_command
위 명령은 편집하고 있는 다음 라인에 입력한 명령의 출력결과가 입력될 것이다.
@@@@@@@@@@@@@@@[원문]@@@@@@@@@@@@@@@@
READ IN THE OUTPUT
While in VI, if you enter:
:r !my_command
Then you will insert the output of
the command you've entered on the
next line of the file that you're editing.
반응형