0

I am trying to get the same functionality as on a Linux where the last argument can be inserted into a another command easily.

1

If you're using bash or zsh, the shortcut !$ works in the same fashion.

For example:

[user@localhost ~]$ echo "test" >> new_file
[user@localhost ~]$ cat !$
cat new_file
test

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.