On Wed, 4 Sep 1996, Sliver wrote: > I went into the code and tried to add some new values.. > I think I did somthing wrong.. heres what I did: > I went into db.c and made changes around: > if (!get_line(obj_f, line) || > (retval = sscanf(line, "%d %d %d %d %d %d %d", t, t + 1, t + 2, > t + 3, t + 4, t + 5, t + 6)) != 7) { > fprintf(stderr, "Format error in second numeric line (expecting 7 args, > got$ > exit(1); Did you update "int value[3]" in obj_file_elem and obj_flag_data in structs.h? Be warned however, that this will require a rent wipe if you don't convert the rent files..... Brazil +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+ From cat@vuse.vanderbilt.edu Wed, 4 Sep 96 09:05:17 -0500 X-SystemInfo: MyE-Mail: EMail X-ReplyTo-No: 4174 (There are more replies.) X-Message-No: 4178 (database) From: Katzlberger Thomas <cat@vuse.vanderbilt.edu> To: rr <rr@cbs.dk> Subject: Re: [OS-OFFTOPIC] Greping direcorties recursively Date: Wed, 4 Sep 96 15:05:00 Message-ID: <9609041405.AA00245@localhost.vuse.vanderbilt.edu> Reply-To: katzlbt@vuse.vanderbilt.edu (Thomas Katzlberger) X-POP3-Rcpt: lk4150@per Return-Path: <@QUCDN.QueensU.CA:owner-circle@cspo.queensu.ca> Received: from QUCDN.QueensU.CA (QUCDN.QueensU.CA [130.15.126.2]) by per.cybercity.dk (8.6.12/8.6.12) with SMTP id PAA05660 for <lk4150@krull.dk>; Wed, 4 Sep 1996 15:06:18 +0200 Received: from cspo.queensu.ca by QUCDN.QueensU.CA (IBM VM SMTP V2R2) with TCP;Wed, 04 Sep 96 10:19:02 EDT Received: by cspo.queensu.ca (SMI-8.6/SMI-SVR4)id KAA03158; Wed, 4 Sep 1996 10:05:51 -0500 Received: from vuse.vanderbilt.edu by cspo.queensu.ca (SMI-8.6/SMI-SVR4) Received: from localhost.vuse.vanderbilt.edu by vuse.vanderbilt.edu (8.7.5/SMI-4.1/VUSE-1.24) Received: by localhost.vuse.vanderbilt.edu (NX5.67f2/NX3.0S) Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) X-Nextstep-Mailer: Mail 3.3 (Enhance 1.3) Received: by NeXT.Mailer (1.118.2.RR) Cc: circle@cspo.queensu.ca References: <Pine.HPP.3.92.960904152459.6734D-100000@hp4.econ.cbs.dk> X-My-Email: katzlbt@vuse.vanderbilt.edu Sender: owner-circle@cspo.queensu.ca Precedence: bulk You wrote: > Hi, > > I just remembered a little thing I've wondered about when I wanted > to grep a directory structure recursively. I.e. if I wanted to > search a full harddisk for a piece of text contained in any file. > How do I do it ? As far as I am concerned, I can only make grep do > a search for a text in the present working directory.. > > Anyone able to help me with the solution ? find . -name '*' -print -exec egrep AnyThing {} \; . = start in cuttent wd otherwise insert path there. or use fgrep (fast) or just grep Cat. --- _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/_/ _/_/ _/_/ Thomas Katzlberger _/_/ _/_/ katzlbt@vuse.vanderbilt.edu _/_/ _/_/ @aWhiteNeXT.called.garfield _/_/ _/_/ http://www.vuse.vanderbilt.edu/~katzlbt/ _/_/ _/_/ _/_/ _/_/ "You can tune a file system, but you can't tune a fish." _/_/ _/_/ UNIX man page for tunefs. _/_/ _/_/ _/_/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST