lkml.org 
[lkml]   [1998]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectOFFTOPIC: Re: hardlinks.... sucks... ;-(
Albert D. Cahalan wrote:
>
> > Try something a bit like one of the following:
> >
> > find / -user 1234 -print | xargs chown 4321
> > find / -user 1234 -print | xargs rm
> > find / -user 1234 -exec chown 4321 {} ;
> > find / -user 1234 -exec rm {} ;
>
> It seems a file starting with "-" could cause trouble too.
> Maybe a name like "--follow-symlinks" would be interesting.

A file containing a space causes xargs to perform in an often-
unexpected manner. When in doubt, -exec is the (slower but surer) way
to go.

Mitch.

PS: Many thanks to those who set me straight with HP's 24-bit minor
device numbers.

--
| mailto:mjd#NOSPAM@nsmd.aus.hp.com | Not an official view of: |
| mailto:mjd#NOSPAM@alphalink.com.au | Telecom Management Divn |
| Remove the #NOSPAM to send me mail | Hewlett Packard Australia |

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.972 / U:3.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site