bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clarification regarding linux command "ls".


From: James Youngman
Subject: Re: Clarification regarding linux command "ls".
Date: Fri, 11 May 2007 20:39:29 +0100

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]