Re: Purge History of rm commands

2011-09-20 Thread Roger
> On Tue, Sep 20, 2011 at 08:58:34AM -0500, Dennis Williamson wrote: >You can get as fancy as you want with regexes in order to catch all >cases of "rm" anywhere on the line and reduce the chances of a false >positive: > >gawk '{ c = $0; getline; if ($0 ~ >(^|;[[:space:]]*)\[[:space:]]+/) { print

Re: Purge History of rm commands

2011-09-20 Thread Dennis Williamson
On Tue, Sep 20, 2011 at 1:34 AM, Roger wrote: >> On Mon, Sep 19, 2011 at 08:38:44AM -0400, Greg Wooledge wrote: >>On Sun, Sep 18, 2011 at 10:11:17PM -0800, Roger wrote: >>> > On Mon, Sep 19, 2011 at 01:37:22AM -0400, Mike Frysinger wrote: >>> >On Monday, September 19, 2011 01:18:02 Roger wrote: >>

Re: Purge History of rm commands

2011-09-19 Thread Roger
> On Mon, Sep 19, 2011 at 08:38:44AM -0400, Greg Wooledge wrote: >On Sun, Sep 18, 2011 at 10:11:17PM -0800, Roger wrote: >> > On Mon, Sep 19, 2011 at 01:37:22AM -0400, Mike Frysinger wrote: >> >On Monday, September 19, 2011 01:18:02 Roger wrote: >> >> I'm stumped on this as my history is in the for

Re: Purge History of rm commands

2011-09-19 Thread Greg Wooledge
On Sun, Sep 18, 2011 at 10:11:17PM -0800, Roger wrote: > > On Mon, Sep 19, 2011 at 01:37:22AM -0400, Mike Frysinger wrote: > >On Monday, September 19, 2011 01:18:02 Roger wrote: > >> I'm stumped on this as my history is in the format of: > >> > >> $ tail ~/.bash_history > >> #1316296633 > >> man b

Re: Purge History of rm commands

2011-09-18 Thread Roger
Hi fellow Gentooer. > On Mon, Sep 19, 2011 at 01:37:22AM -0400, Mike Frysinger wrote: >On Monday, September 19, 2011 01:18:02 Roger wrote: >> I'm stumped on this as my history is in the format of: >> >> $ tail ~/.bash_history >> #1316296633 >> man bash >> #1316296664 >> bash -xv >> #1316372056 >

Re: Purge History of rm commands

2011-09-18 Thread Mike Frysinger
On Monday, September 19, 2011 01:18:02 Roger wrote: > I'm stumped on this as my history is in the format of: > > $ tail ~/.bash_history > #1316296633 > man bash > #1316296664 > bash -xv > #1316372056 > screen -rd > #1316375930 > exit > #1316392889 > exit > > Is there a method of purging the histo

Purge History of rm commands

2011-09-18 Thread Roger
I'm stumped on this as my history is in the format of: $ tail ~/.bash_history #1316296633 man bash #1316296664 bash -xv #1316372056 screen -rd #1316375930 exit #1316392889 exit Is there a method of purging the history off all rm commands with such a file format? I've tried using history | find |