Re: [SLUG] useful bash tricks thread

2009-02-08 Thread Amos Shapira
Yes but what if you (or someone else sharing the root account) got it into history by accident? (apologies for top posting, limitations of client) On 2/9/09, Owen Townend wrote: > 2009/2/9 Amos Shapira : > [snip] >> >> And one last thing, related to security - if you type a sensitive >> string o

Re: [SLUG] Re: useful bash tricks thread

2009-02-08 Thread Owen Townend
2009/2/9 Rick Welykochy : > Owen Townend wrote: >> >> 2009/2/9 Amos Shapira : >> [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 a

Re: [SLUG] Re: useful bash tricks thread

2009-02-08 Thread Daniel Bush
2009/2/9 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 langu

Re: [SLUG] Re: useful bash tricks thread

2009-02-08 Thread Rick Welykochy
Owen Townend wrote: 2009/2/9 Amos Shapira : [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 lin

Re: [SLUG] Re: useful bash tricks thread

2009-02-08 Thread Owen Townend
2009/2/9 Amos Shapira : [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 line from the hist

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 kn

Re: [SLUG] Electronic publishing software

2009-02-08 Thread Marghanita da Cruz
Daniel Pittman wrote: Richard Hayes writes: I have a need to create approximately 100 reports each about 40 pages long. They all very similar with large sections of prewritten text (ie boilerplate) and a very specific format. All the reports are similar to a "Building Application" you submit

Re: [SLUG] useful bash tricks thread

2009-02-08 Thread jam
On Monday 09 February 2009 10:00:09 slug-requ...@slug.org.au 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 < > > > > > > for int

Re: [SLUG] Electronic publishing software

2009-02-08 Thread Daniel Pittman
Richard Hayes writes: > I have a need to create approximately 100 reports each about 40 pages > long. > > They all very similar with large sections of prewritten text (ie > boilerplate) and a very specific format. > > All the reports are similar to a "Building Application" you submit to > the loc

[SLUG] Electronic publishing software

2009-02-08 Thread Richard Hayes
Dear List, I have a need to create approximately 100 reports each about 40 pages long. They all very similar with large sections of prewritten text (ie boilerplate) and a very specific format. All the reports are similar to a "Building Application" you submit to the local council. What fr

Re: [SLUG] useful bash tricks thread

2009-02-08 Thread Gavin Carr
On Fri, Feb 06, 2009 at 09:06:25PM +1100, Tony Sceats 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'm fond of the -t flag to ls, which orders by mtime desc. I have these defined in my .bashrc: lead() { ls -lt