Hello!

On Mon, Jun 04, 2007 at 06:27:41PM +0200, Almir Karic wrote:
>>A completely safe solution would be writing a small script:

>>#! /bin/sh
>>exec sed s/old/new/ < "$1" > "$1".new

>>and using find . -type f -name \*.htm -exec /path/to/script {} \;
>>or find . -type f -name \*.htm -print0 | xargs -0 -L 1 -r /path/to/script

>...-exec sh -c 'something with $1' {} \; is fully safe as well.

sh -c 'echo foo"$1"bar' baz

-> foobar

Seems not.

Kind regards,

Hannah.

Reply via email to