| delorie.com/archives/browse.cgi | search |
| From: | dave AT roborat DOT demon DOT co DOT uk (Dave Scott) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Global file edit? |
| Date: | Sat, 24 Jul 1999 22:50:56 +0100 (BST) |
| Organization: | none |
| Message-ID: | <19990724.2350.13705snz@roborat.demon.co.uk> |
| References: | <19990723 DOT 1942 DOT 13701snz AT roborat DOT demon DOT co DOT uk> |
| <7naupl$j1i$1 AT news DOT luth DOT se> | |
| X-Trace: | mail2news.demon.co.uk 932855336 mail2news:18771 mail2news mail2news.demon.co.uk |
| X-Complaints-To: | abuse AT demon DOT net |
| X-Mail2News-Path: | news.demon.net!finch-post-11.mail.demon.net!roborat.demon.co.uk |
| X-Newsreader: | SNews 1.30+mods(jlw990606/djgpp) built: Jul 18 1999 |
| Lines: | 20 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
On 23 Jul, in article <7naupl$j1i$1 AT news DOT luth DOT se>
ams AT ludd DOT luth DOT se "Martin Str|mberg" wrote:
..
> Perl to the rescue!!!
>
> perl -i.bak -ne 's/malloc/xmalloc/g; print' *.c *.cpp
Thanks Martin, off to download it now!
> Note that this _will_ replace "xmalloc" with "xxmalloc", so don't run
> it twice (without moving back the .bak files).
I'll be careful :-)
--
()---()
(0 0) Dave Scott e-mail: dave AT roborat DOT demon DOT co DOT uk
----m-( )-m-------------------------------------------------------------
=o=
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |