terminal - Bash - Reusing output from last command -
is output of bash command stored in register? e.g. similar $? capturing output instead of exit status.
i assign output variable with:
output=$(command) but that's more typing...
you can utilize this: $(!!) reuse output of lastly command.
the !! on own executes lastly command.
$ > echo pierre pierre $ > echo name $(!!) echo name $(echo pierre) name pierre bash terminal stdout
No comments:
Post a Comment