--nextPart1781414.q6SoF4VMjF Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 09 September 2004 1:23 pm, Andrew Ross wrote: > On Thu, 2004-09-09 at 16:33, Alex wrote: > > i keep one generic script like so : > > > > #!/bin/bash > > > > for file in `find . -name "*.php"`; > > do vi -s replace-script $file; > > done; > > Surely that would break when a file or directory contains spaces? No reason to die ;) #! /bin/sh PATTERN=3D"${1}" REPLACE_SCRIPT=3D"/tmp/${HOSTNAME}-${USER}-replacescript" cat >${REPLACE_SCRIPT} <