Re: [UNIX] search/replace command

From: George Greer (
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   |

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  |

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