Photo by Didssph / Unsplash

TIL - Accessing arguments from the last command in Shell

Today I Learned Oct 1, 2022

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 $_

Tags