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
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.
; 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.
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
4 matches
Mail list logo