Get the last parameter from the previous command
When you want to retrieve the last parameter from the previous command in the shell, you can use the following syntax:
echo $_
or
echo !$
When you want to retrieve the last parameter from the previous command in the shell, you can use the following syntax:
echo $_
or
echo !$