Re: global interactive search-and-replace in bash?

2008-08-18 Thread Oron Peled
On Monday, 18 בAugust 2008, Tzafrir Cohen wrote: > Here's a different way to do that: > > Ctrl-R # search for the command. Find it. > set -o vi > Esc #to get into command mode > v #edit the command in VISUAL and execute WHAT? Somebody took the *only* good interactive feature in bloody Korn/Posi

Re: open phone (is openmoko the only option ?)

2008-08-18 Thread Nadav Har'El
On Sun, Aug 17, 2008, Erez D wrote about "open phone (is openmoko the only option ?)": > i have a Nokia N95 8GB. on the paper it is a great phone (if you look at the > hardware spec) > however the MMI/software sucks bigtime (like most phones on the market). This issue is unfortunately not specifi

Re: global interactive search-and-replace in bash?

2008-08-18 Thread Tzafrir Cohen
On Mon, Aug 18, 2008 at 06:24:39PM +1000, Amos Shapira wrote: > 2008/8/18 Tzafrir Cohen <[EMAIL PROTECTED]>: > > Here's a different way to do that: > > > > Ctrl-R # search for the command. Find it. > > set -o vi > > Esc #to get into command mode > > v #edit the command in VISUAL and execute > >

[Job offer] MySQL instructor for Hi Tech College

2008-08-18 Thread Gilad Ben-Yossef
Hi, Hi tech college are looking for an instructor for a MySQL course. If you know MySQL installation, administration and optimization inside out, have training experience and interested let me know. Thanks, Gilad -- Gilad Ben-Yossef Chief Coffee Drinker Codefidence Ltd. The code is fr

Re: global interactive search-and-replace in bash?

2008-08-18 Thread Tzafrir Cohen
On Mon, Aug 18, 2008 at 06:24:39PM +1000, Amos Shapira wrote: > 2008/8/18 Tzafrir Cohen <[EMAIL PROTECTED]>: > > Here's a different way to do that: > > > > Ctrl-R # search for the command. Find it. > > set -o vi > > Esc #to get into command mode > > v #edit the command in VISUAL and execute > >

Re: global interactive search-and-replace in bash?

2008-08-18 Thread Amos Shapira
2008/8/18 Tzafrir Cohen <[EMAIL PROTECTED]>: > Here's a different way to do that: > > Ctrl-R # search for the command. Find it. > set -o vi > Esc #to get into command mode > v #edit the command in VISUAL and execute I didn't quiet follow how you enter the "set -o vi". Maybe you can give the exac

Re: global interactive search-and-replace in bash?

2008-08-18 Thread Amos Shapira
2008/8/18 Shachar Shemesh <[EMAIL PROTECTED]>: > Amos Shapira wrote: >> >> Hello, >> >> I have this long command line which I keep changing multiple instances >> of host names in it: >> > > I know this isn't answering your question, but still: > If you keep using the same command line, why don't yo

Re: global interactive search-and-replace in bash?

2008-08-18 Thread Amos Shapira
2008/8/18 Valery Reznic <[EMAIL PROTECTED]>: > You can instead of > > rm -f redo-afn2-dev.out; ./redo.sh afn2-dev & jobs -x tail --pid %./redo.sh > -F -n +0 redo-afn2-dev.out > > Type > h=afn2-dev; rm -f redo-$h.out; ./redo.sh $h & jobs -x tail --pid %./redo.sh > -F -n +0 redo-$h.out > > Then, wh

Re: global interactive search-and-replace in bash?

2008-08-18 Thread Tzafrir Cohen
On Mon, Aug 18, 2008 at 05:35:44PM +1000, Amos Shapira wrote: > Hello, > > I have this long command line which I keep changing multiple instances > of host names in it: > > # rm -f redo-afn2-dev.out; ./redo.sh afn2-dev & jobs -x tail --pid > %./redo.sh -F -n +0 redo-afn2-dev.out > > I use CentOS

Re: global interactive search-and-replace in bash?

2008-08-18 Thread Omer Zak
I sometimes encounter similar situations, and my answer to the question is that it is easier to remember the command and reconstruct it than to remember what name I gave to the script running the command with my supplied arguments. (Reminds me of Richard Feynman's approach for remembering theorems

Re: global interactive search-and-replace in bash?

2008-08-18 Thread Valery Reznic
You can instead of rm -f redo-afn2-dev.out; ./redo.sh afn2-dev & jobs -x tail --pid %./redo.sh -F -n +0 redo-afn2-dev.out Type h=afn2-dev; rm -f redo-$h.out; ./redo.sh $h & jobs -x tail --pid %./redo.sh -F -n +0 redo-$h.out Then, when you need change hostname you find this command and just ch

Re: global interactive search-and-replace in bash?

2008-08-18 Thread Shachar Shemesh
Amos Shapira wrote: Hello, I have this long command line which I keep changing multiple instances of host names in it: I know this isn't answering your question, but still: If you keep using the same command line, why don't you script it? Shachar ===

global interactive search-and-replace in bash?

2008-08-18 Thread Amos Shapira
Hello, I have this long command line which I keep changing multiple instances of host names in it: # rm -f redo-afn2-dev.out; ./redo.sh afn2-dev & jobs -x tail --pid %./redo.sh -F -n +0 redo-afn2-dev.out I use CentOS 5 and Bash as my interactive shell. The problem is that just *sometimes* (most