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