Date: Fri, 28 Jan 2005 06:36:41 +0000 From: markzero <mark@darklogik.org> To: freebsd-questions@freebsd.org Subject: Re: One-line global string replace in all files with sed (or awk?) Message-ID: <20050128063641.GB9405@logik.ath.cx> In-Reply-To: <592951872.20050128070808@wanadoo.fr> References: <1098984237.20050128065616@wanadoo.fr> <592951872.20050128070808@wanadoo.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050128063641.GB9405>