From jcustard@ucar.edu Mon Jun 11 16:19:40 2007 Return-Path: Received: from nscan1.ucar.edu ([128.117.64.191] verified) by mail.ucar.edu (CommuniGate Pro SMTP 5.0.9) with ESMTP id 12846140; Mon, 11 Jun 2007 16:19:40 -0600 Received: from localhost (localhost.localdomain [127.0.0.1]) by nscan1.ucar.edu (Postfix) with ESMTP id 8D0717FC073; Mon, 11 Jun 2007 16:19:40 -0600 (MDT) Received: from nscan1.ucar.edu ([127.0.0.1]) by localhost (nscan1.ucar.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17585-10; Mon, 11 Jun 2007 16:19:40 -0600 (MDT) Received: from [127.0.0.1] (mercury.scd.ucar.edu [128.117.8.165]) by nscan1.ucar.edu (Postfix) with ESMTP id 303887FC06D; Mon, 11 Jun 2007 16:19:40 -0600 (MDT) Message-ID: <466DCA77.4050204@ucar.edu> Date: Mon, 11 Jun 2007 16:19:35 -0600 From: Jeff Custard Reply-To: jcustard@ucar.edu Organization: UCAR/NCAR User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: Pete Siemsen Subject: found this in my PalmTX X-Enigmail-Version: 0.94.3.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at ucar.edu Hypermail CLI string searching: [as of 2004-10-21 (PS)] ----- At yesterday's NE meeting, Marla asked haw to search the Hypermail archives for a string. To do it, go to netserver and do cd /usr/web/nets/archives/internal/mailing-lists find . -type f -exec grep -i -l "str" {} \; ...where str is the string you want to find. This will search all the hypermail directories and list the files that contain the string. If you remove the "-i", the search will become case sensitive. If you remove the "-l", it'll show every line that matches instead of the names of files. If you replace the . with the name of a mailing list, it'll search just that list. EXAMPLES To show lines that contain the string "Bob Brenner"... find . -type f -exec grep "Bob Brenner" {} \; To show names of files that contain the string "Bob Brenner"... find . -type f -exec grep -l "Bob Brenner" {} \; To show names of files in the bpop mailing list that contain the string "Bob Brenner"... find bpop -type f -exec grep -l "Bob Brenner" {} \; -----