Back to TILs

Bash - special variables

bash $_

Table of contents

$_ latest argument

Sets the variable to the latest argument of the last command.

echo abc def ghi jkl; echo $_
abc def ghi jkl
jkl

References