bash – refer the first parameter from last command quickly
2014-09-22
22 words
1 min read
To refer to first parameter from the last command quickly, you can use
!^
Note: This can also be referred as “!!:1“
Related Articles:
- 2014/09/15 bash refer parameters from the current command
- 2014/02/03 bash debug – log all executed commands
- 2013/11/22 bash – using the vi mode more effectively.
- 2012/05/07 Array of all possible colors in bash script
- 2012/04/30 colors in bash scripts

Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.