Re: Help: Command to search & replace word in file?

2000-10-19 Thread Paul Seelig
On Thu, Oct 19, 2000 at 09:26:59AM +0200, Jonathan Gift wrote: > Is there a way from the console to use a grep like command to search a file > for, say the word "blue" and replace it with "red"? The key is console and > not within Vim, etc. I'm trying to set up a way to automate changing > .Xdefau

Re: Help: Command to search & replace word in file?

2000-10-19 Thread Olivier Billet
Hi, Jonathan Gift wrote: > Hi, > > Is there a way from the console to use a grep like command to search a file > for, say the word "blue" and replace it with "red"? > with a simple Bash script. If you accept Perl script, it's really easy since you just have to do a s/blue/red/ Olivier.

Re: Help: Command to search & replace word in file?

2000-10-19 Thread Russell Davies
; Is there a way from the console to use a grep like command to search a file ; for, say the word "blue" and replace it with "red"? The key is console and ; not within Vim, etc. I'm trying to set up a way to automate changing ; .Xdefault setups with a simple Bash script. man sed r.

Help: Command to search & replace word in file?

2000-10-19 Thread Jonathan Gift
Hi, Is there a way from the console to use a grep like command to search a file for, say the word "blue" and replace it with "red"? The key is console and not within Vim, etc. I'm trying to set up a way to automate changing .Xdefault setups with a simple Bash script. Thanks, Jonathan