
다음과 같은 상황에 처해 있다고 가정해 보세요.
<command 1>
<output of command 1>
<want to use output of command 1 here without have to retype it>
내 구체적인 사례:
which eclipse
/usr/bin/eclipse
ldd /usr/bin/eclipe
하지만 저는 이 마지막 줄을 입력할 필요가 없는 것을 선호합니다. 단축키가 있나요?
답변1
사용 $()
:
ldd "$(which eclipse)"