linux just became THAT much cooler
i understand

thanks :)

_________________________________
daniel a. g. quinn
starving programmer

many go fishing all their lives
without knowing that it is not fish they are after.
  - henry david thoreau

----- Original Message ----- 
From: "Bill Crawford" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 09, 2002 4:47 PM
Subject: Re: removing individual files recursively


> On Tue, 9 Apr 2002, daniel wrote:
> 
> > that looks like it's what i want
> > but for my own benefit...  what does that _mean_
> > i'm sure i can just copy/paste it
> > but i wanna know how it works....
> 
> > >  find /home/username -name .AppleDouble -print0 | xargs -0 rm -rf
> 
>  Sorry ...
> 
> find /path/to/look/in -name foo
> 
>  looks recursively under /path/to/look/in for any file with the name
> foo (or whatever, you can use wildcards too).
> 
> -print0
> 
>  tells find to use a null byte as a separator between the paths it
> spits out in case you have any directory names with whitespace such
> as blanks or newlines in.
> 
> xargs -0
> 
>  reads arguments from standard input, using null bytes as separators
> (to match what find is feeding it in this case, without the -0 it just
> looks for whitespace)
> 
> rm -rf
> 
>  as arguments to xargs, are the command it will execute using the
> arguments it reads in; it will by default try to feed several of the
> incoming arguments at once to the command, although there are options
> to tell it to run fixed numbers of arguments each time.
> 
> 
> 
> 
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
> 



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to