Gio Lodi 8/5/2015

How to reuse the last parameter in a terminal command

Read Original

This technical article details two Bash shell tricks for reusing the last argument from a previous command: the $_ variable and the !$ history expansion. It provides practical examples, such as using them with Git commands, and discusses their utility in scripting and with tools like xargs to improve command-line efficiency.

How to reuse the last parameter in a terminal command

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser