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: Matthew Woehlke
Subject: Re: Clarification regarding linux command "ls".
Date: Fri, 11 May 2007 15:27:08 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.4.0

James Youngman wrote:
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

Picky, picky... :-)

--
Matthew
find / -user your -name base -print0 | xargs -0 chown us:us





reply via email to

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