Timeline for pass previous command's arguments to current command
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 18, 2013 at 4:37 | history | edited | spuder | CC BY-SA 3.0 |
added 318 characters in body
|
Jul 17, 2013 at 18:31 | comment | added | glenn jackman |
To take all the parameters, use !* -- gnu.org/software/bash/manual/bashref.html#History-Interaction
|
|
Jul 17, 2013 at 18:25 | comment | added | spuder | Thanks for pointing that out. Since there are no answers yet, I am going to clarify the question. | |
Jul 17, 2013 at 18:19 | comment | added | slhck |
Be aware, !$ only expands to the last argument, not all. And this does not answer your question as stated—do you want command substitution as in vim "$(locate foo.txt)" ?
|
|
Jul 17, 2013 at 18:15 | history | answered | spuder | CC BY-SA 3.0 |