Re: [SLUG] Re: useful bash tricks thread

2009-02-08 Thread Amos Shapira
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

Re: [SLUG] Re: useful bash tricks thread

2009-02-08 Thread Owen Townend
2009/2/9 Amos Shapira amos.shap...@gmail.com: [snip] And one last thing, related to security - if you type a sensitive string on the command line and get it into your history, use history -d to delete this line. There is an easier way around this. Most shells, bash included will exclude a

Re: [SLUG] Re: useful bash tricks thread

2009-02-08 Thread Rick Welykochy
Owen Townend wrote: 2009/2/9 Amos Shapira amos.shap...@gmail.com: [snip] And one last thing, related to security - if you type a sensitive string on the command line and get it into your history, use history -d to delete this line. There is an easier way around this. Most shells, bash

Re: [SLUG] Re: useful bash tricks thread

2009-02-08 Thread Daniel Bush
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

Re: [SLUG] Re: useful bash tricks thread

2009-02-08 Thread Owen Townend
2009/2/9 Rick Welykochy r...@praxis.com.au: Owen Townend wrote: 2009/2/9 Amos Shapira amos.shap...@gmail.com: [snip] And one last thing, related to security - if you type a sensitive string on the command line and get it into your history, use history -d to delete this line. There is an

[SLUG] Re: useful bash tricks thread

2009-02-07 Thread Daniel Bush
On Feb 6, 9:06 pm, Tony Sceats t...@fatuous.org wrote: It's been a while since there's been a thread like this, so I thought it would be fun :) so, have you got any? I've got 2 to share today: alt and then alt woo, that's kinda interesting. It seems to pick the last word for each

Re: [SLUG] Re: useful bash tricks thread

2009-02-07 Thread Tony Sceats
On Sat, Feb 7, 2009 at 11:58 PM, Daniel Bush dlb.id...@gmail.com wrote: On Feb 6, 9:06 pm, Tony Sceats t...@fatuous.org wrote: It's been a while since there's been a thread like this, so I thought it would be fun :) so, have you got any? I've got 2 to share today: alt and then