Skip to content

Today I Learned 1 min read

TIL - Accessing arguments from the last command in Shell

The last command’s last argument can be accessed with the following command -

# Example for dropping and creating a PostgreSQL db.

dropdb test_database
createdb $_
shell