From owner-freebsd-questions@FreeBSD.ORG Fri Jan 28 06:36:36 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C5AC16A4CE for ; Fri, 28 Jan 2005 06:36:36 +0000 (GMT) Received: from addr14.addr.com (addr14.addr.com [209.249.147.92]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76BDC43D2F for ; Fri, 28 Jan 2005 06:36:36 +0000 (GMT) (envelope-from markzero@logik.ath.cx) Received: from logik.ath.cx (localhost [127.0.0.1])j0S6aXUB020717 for ; Thu, 27 Jan 2005 22:36:34 -0800 (PST) Received: by logik.ath.cx (Postfix, from userid 1001) id EBE7A61A9; Fri, 28 Jan 2005 06:36:41 +0000 (UTC) Date: Fri, 28 Jan 2005 06:36:41 +0000 From: markzero To: freebsd-questions@freebsd.org Message-ID: <20050128063641.GB9405@logik.ath.cx> References: <1098984237.20050128065616@wanadoo.fr> <592951872.20050128070808@wanadoo.fr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CUfgB8w4ZwR/yMy5" Content-Disposition: inline In-Reply-To: <592951872.20050128070808@wanadoo.fr> X-OS: FreeBSD 5.3-RELEASE-p5 i386 LOGIK005 X-GPG-Key: http://darklogik.org/pub/pgp/pgp.txt X-Fingerprint: B776 43DC 8A5D EAF9 2126 9A67 A7DA 390F DEFF 9DD1 User-Agent: Mutt/1.5.6i X-ADDRSpamFilter: Passed, probability (0%) X-ADDRSignature: 18D8345A Subject: Re: One-line global string replace in all files with sed (or awk?) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jan 2005 06:36:36 -0000 --CUfgB8w4ZwR/yMy5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > Hmm ... maybe I found it: >=20 > grep -R -l "xxx" /www/htdocs | xargs sed -i '' -e 's/xxx/yyy/g' >=20 > Does that look okay? Seems to work in my test. >=20 > --=20 > Anthony >=20 Looks good! Mark --=20 PGP: http://www.darklogik.org/pub/pgp/pgp.txt B776 43DC 8A5D EAF9 2126 9A67 A7DA 390F DEFF 9DD1 --CUfgB8w4ZwR/yMy5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iQIVAwUBQfndeKfaOQ/e/53RAQJGEw//azusDqgbWNxrT+QeJlvoz7e4czXR8bx7 8G56H4Ui7lcsEAAeUbWp3XgmV929uVkOXIaMBrrRM0wnxwR+w4quY1hhlw9NobtQ 3l13nL9MNmghOR2XGtVoPPR3nRSCl0laP1+CDnVe2Uh7xvCRwoNCjP9tFxUuyoCl WkE9yo5MzXar2cJo8JXjUNjPJFYd8RBl68xsHG6ezm0keMT0/8vsr7ntHLahZvKh vChSzGiJV0zhFMAshRg/h3N5XWmzam/NNXc5HR6k3itmETWspcJa7/BLwcKtjmAD X+vPvlLKS+4LtXQWM7NjciQyIZ3aKIjMkldFFgywewaheQfMj+YIwD7ex+sTC3KK 7ye6LHL6JLjfGHQTDenij+a3QzJK/a2SpaOrHN/mHZcmrC39PPBp1UCbTH99x0c9 cWVzs4tzop5B1N08dwrTFDfIi7/J3KLDC10wQ7BvMsx6jD8jbDlQm/2RgC9lXohb ZQaG9u8CsuRAoo44nujKKQK9BqnF+ZHlua1+V0r1gnvylfKBMZ/16pOj57aIFeKj vCC5J/wIMdMT0HuRzdBsZAhbF5lC5mpp6LykMBwN5cekEAoL/y0UrZG+nnUPAYiZ JRIujZvq4poTmv4/WjFf7Wb0jH/9EOmLVOduLjZ9efad03rvvDPuBgltvrBIxZ5n c0Cfzd+nOiI= =UhAW -----END PGP SIGNATURE----- --CUfgB8w4ZwR/yMy5--