back-reference

bash – refer the first parameter from last command quickly

2014/09/22

To refer to first parameter from the last command quickly, you can use !^ Note: This can also be referred as “!!:1“

bash refer parameters from the current command

2014/09/15

In bash you can use !# to refer to any parameter from the current command, example:


This website uses cookies to ensure you get the best experience on our website. Learn more Got it