!$
gets the last element of the previous command line argument.
More Related Contents:
- How do I parse command line arguments in Bash?
- How do I set a variable to the output of a command in Bash?
- Why do you need ./ (dot-slash) before executable or script name to run it in bash?
- How to iterate over arguments in a Bash script
- Timeout a command in bash without unnecessary delay
- What is the purpose of “&&” in a shell command?
- Capture stdout and stderr into different variables
- Remove the last line from a file in Bash
- How to get Maven project version to the bash command line
- How to replace ${} placeholders in a text file?
- How to run some command before or after every Bash command entered from console?
- How can I get a recursive full-path listing, one line per file?
- How to reload .bash_profile from the command line
- Why do I get “/bin/sh: Argument list too long” when passing quoted arguments?
- What is your single most favorite command-line trick using Bash? [closed]
- Convert line endings [duplicate]
- Multiplication on command line terminal
- -bash: !”: event not found [closed]
- Why doesn’t my terminal output unicode characters properly?
- When do we need curly braces around shell variables?
- Accessing bash command line args $@ vs $*
- Replace one substring for another string in shell script
- How can I escape a double quote inside double quotes?
- Tilde in path doesn’t expand to home directory
- Bash syntax error: unexpected end of file
- How to assign the output of a Bash command to a variable? [duplicate]
- Bash check shows file exists for non-existent files?
- find: missing argument to -exec
- Counting lines or enumerating line numbers so I can loop over them – why is this an anti-pattern?
- How do I integrate MSYS2 shell into Visual studio code on Window?