How to reuse the last parameter in a terminal command
Read OriginalThis 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.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser