Bash command line backreference
Using lists on the bash command line, is there a way to reference a parameter appearing earlier in the command list?
For example, I have two common use cases:
Or I could do
The second use case is similar:
Ideally, I would like to type something like
Is there such a feature in readline?
If I understand what you're asking, I think you can get it with "!:2". Check http://www.gnu.org/software/bash/man...rd-Designators
|All times are GMT -5. The time now is 12:19 AM.|