15 Aug 2022   command-line


You can access the last commandโ€™s last argument with $_

Example:

> echo '๐ŸŸ I Eat Food'
๐ŸŸ I Eat Food

> echo $_
๐ŸŸ I Eat Food

Example Two:

> dropdb my_database
> createdb $_