How do I do a bang command to repeat last line, but with changed last argument?
-
geekology.co.za/blog/2009/02/…– joeOct 2, 2009 at 13:25
-
I guess there are other uses than just ease of typing, but <Up> <Home> "sudo " <Enter> is as many key presses as "sudo !!" <Enter> (even fewer if one counts the <Shift> to get !), and more general. Similar combinations also nullifies other uses of the !! operator, in my experience.– Daniel AnderssonMar 26, 2012 at 15:10
Add a comment
|
1 Answer
-
I couldn't tell from the article whether that was substituting or appending new_last_argument for old_last_argument. At the bottom of the link there's a cheat sheet that spells it out. Good reference! Oct 2, 2009 at 14:15