On 5/11/07, Matthew Woehlke <address@hidden> wrote:
find / -user your -name base -print | xargs chown us:us
# consider (![ -e base ]) and "my
# moon/base"
set -C
if [ -z "$(find / -user your -name base -printf Z -quit 2>/dev/null)" ] ; then
sed -e 's/xargs chown/xargs -r chown/'
fi < your-script.sh | sed \
-e 's/-print/-print0/' \
-e 's/xargs /xargs -0 /' > my-script.sh