
次のような状況にあるとします。
<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)"