Re: [UNIX] search/replace command

From: George Greer (greerga@circlemud.org)
Date: 05/13/99


On Thu, 13 May 1999, Roger Smith wrote:

>I looking for a way to search through my source code and replace every
>instance of "GET_FUN" with "GET_OBJ_FUN".  I suppose grep might have
>something to do with it.  Thanks in advance ;)

sed 's/GEN_FUN/GET_OBJ_FUN/g' first_file > temp
mv -f temp first_file

Also can use perl, see archives as of about a week ago.

--
George Greer            | CircleMUD Snippets
greerga@circlemud.org   | http://developer.circlemud.org/snippets/


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST