On Sat, Aug 10, 2002 at 12:44:19PM -0500, Ricardo Lopez wrote:
| Is there a way to use grep to find instances of a pattern and replace them
| with another?
No. That's a job for sed.
(or if you need more flexibility, perl.)
--
Doug McLaren, [EMAIL PROTECTED]
I used to think I was indecisive,
On Sat, Aug 10, 2002 at 12:44:19PM -0500, Ricardo Lopez wrote:
> Is there a way to use grep to find instances of a pattern and replace them
> with another?
You probably want sed - man sed, or do something like:
sed -e 's/oldpattern/newpattern/g' < file.txt
Daniel
___
Is there a way to use grep to find instances of a pattern and replace them
with another?
Alfonso Lopez
B.S. Computer Science: University of Texas at Austin
[EMAIL PROTECTED] www.cs.utexas.edu/~lebouf
Cell: 512-557-3809
___
Siglinux mailing list
[EMAIL