Re: regular expression search and replace
Michael Barton <[email protected]> Tue, 6 Sep 2005 13:53:41 -0500
| Newsgroups | gmane.games.devel.mud.rom |
|---|---|
| Message-ID | <[email protected]> |
[red ~/test/]$ perl -pe 's/REMOVE_BIT\(/remove_bit(&/g' -i *.c ...I'd make a backup first. Oh, and real men write their code with echo. Or maybe cat. echo '#include <stdio.h>' >> test.c --Palrich. On 9/6/05, Orlis Soilface <[email protected]> wrote: > im planning on putting in runters infinite bits and was wondering if > this was possible. i only really use pico for editting in the shell so > havent had to much experience with something else although i did > search and try some things with no success. basically, im wondering if > this can be done: > > find: > REMOVE_BIT(%1->act,PLR_QUESTING); > and replace with: > remove_bit(&%1->act,PLR_QUESTING); > > ya know what i mean? > -- > ROM mailing list > [email protected] > Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom > -- ROM mailing list [email protected] Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom