
Suponha que você esteja na seguinte situação:
<command 1>
<output of command 1>
<want to use output of command 1 here without have to retype it>
Meu caso específico:
which eclipse
/usr/bin/eclipse
ldd /usr/bin/eclipe
Mas eu preferiria não ter que digitar esta última linha, existe algum atalho?
Responder1
Usar $()
:
ldd "$(which eclipse)"