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.


--
almir

Reply via email to