On 5/11/07, Matthew Woehlke <[EMAIL PROTECTED]> 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


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to