From owner-freebsd-questions Fri Jan 21 10:47:58 2000 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-11.mail.nl.demon.net [194.159.73.21]) by hub.freebsd.org (Postfix) with ESMTP id C3CBA14F1F for ; Fri, 21 Jan 2000 10:47:45 -0800 (PST) (envelope-from jr@paranoia.demon.nl) Received: from [212.238.106.171] (helo=pig.bigmama.xx) by post.mail.nl.demon.net with smtp (Exim 2.12 #1) id 12Bj5c-000GB4-00; Fri, 21 Jan 2000 18:47:20 +0000 Received: from gazelle.bigmama.xx (gazelle.bigmama.xx [192.168.118.2]) by pig.bigmama.xx (8.9.3/8.8.8) with ESMTP id TAA29416; Fri, 21 Jan 2000 19:47:16 +0100 Received: from gazelle.bigmama.xx (localhost [127.0.0.1]) by gazelle.bigmama.xx (8.9.3/8.8.8) with ESMTP id TAA24196; Fri, 21 Jan 2000 19:48:47 +0100 (CET) Message-Id: <200001211848.TAA24196@gazelle.bigmama.xx> X-Mailer: exmh version 2.1.1 10/15/1999 To: Charles Randall Cc: freebsd-questions@freebsd.org Subject: Re: UNIX search n replace In-reply-to: Your message of "Fri, 21 Jan 2000 10:59:44 MST." <64003B21ECCAD11185C500805F31EC0304D97722@houston.matchlogic.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 21 Jan 2000 19:48:47 +0100 From: John Russell Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Grab a Perl manual and build something along the lines of, > > % perl -i.bak -pe 's/word1/word2/g;' > > Charles > or use find . | sed s/word1/word2/g > -----Original Message----- > From: Juan Kuuse [mailto:archiver@db.geocrawler.com] > Sent: Friday, January 21, 2000 10:10 AM > To: freebsd-questions@freebsd.org > Subject: UNIX search n replace > > > This message was sent from Geocrawler.com by "Juan Kuuse" > > Be sure to reply to that address. > > More a common UNIX question than a FreeBSD topic: > > grep > to search a keyword multiple files > > How do I search and replace one keyword for > another in multiple files, any suggestions? > > Thanks in advance! > > Juan Kuuse > kuuse@quik.guate.com > > Geocrawler.com - The Knowledge Archive > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message