2009/2/9 Amos Shapira <amos.shap...@gmail.com>

> At the risk of being called an oldie, I keep using !-notation since
> the early tcsh days. E.g. "!$" or !:2-3.
>
> You can also use things like
>
> !less:*
>
> to fetch the parameters of the latest less command.
>
> I can't type alt-> because alt-shift is my keyboard language-switching
> combination, so I don't know how this compares with good old
> bang-notation.
>
> Other useful stuff:
>
> ^x^y will replace the first "x" on the previous line by "y". Use a
> third "^" after "y" if it contains space. It's actually a short for
> "!!:s/x/y/"
>
> ...


I knew it.  I knew there were more of you out there! :)
That whole bang/caret substitute-a-pattern-and-then-run thing just scares me
though, plus its hard to type.  I'll stick with ctrl-r and vi-mode.  But
interesting...





-- 
Daniel Bush
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to