Mail Archives: djgpp/1997/11/15/04:01:13
Olivier PERRON wrote:
>
> Molnar Laszlo wrote:
> >
> > >Is there a GNU util, which replaces words/phrases in text-files? Kind of
> > >like grep but with a replacing option?
> >
> > If you need a really powerful tool, I'd suggest perl.
> >
> > Laszlo
> There are less powerful tools like awk or sed.
> With sed you can specify grep or egrep alike patterns with their
> replacement.
> Using bash, you could write:
> cat my_file | sed 's/my_pattern/my_replacement/g' > my_result_file
> You can also use ed but it is not very friendly to use especially if you
> never used vi.
>
> Olivier.
i will agree re sed, but awk is just a good place to learn bad perl
coding!
LEARN Perl! it won't hurt one bit, and will surprise the hell out of
you; it's easy and verrrrrrry powerful. there is an amusing package
called laola that *could* be used to write a M$word to TeX converter,
even.
phil
oh yeah, and Laszlo's port of perl is EXCELLENT, but i don't think he
thinks i think so... even tho i can't seem to get curses statically
linked into it no matter how much i shove. how about a cursperl,
Laszlo?
- Raw text -