On Mon, 28 Aug 2000, Joe Brenner wrote:

>Date: Mon, 28 Aug 2000 20:07:32 -0700
>From: Joe Brenner <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: rm problem 
>
>
>Alan Shutko <[EMAIL PROTECTED]> wrote: 
>
>> Joe Brenner <[EMAIL PROTECTED]> writes:
>> 
>> > For some reason, the function of xargs will not sink into my
>> > head... 
>> 
>> What xargs does is take a list of things on standard input (usually
>> files) and run the command specified, putting as many of those files
>> (or whatever) on each command line, until the command has been run for
>> each file.
>
>I guess what bothers me most is that there doesn't seem to
>be any placeholder for where the filename is going to go.
>Like what if you don't want the filename at the end of the
>command line?  Then you revert back to find with -exec?

man xargs

...

       --replace[=replace-str], -i[replace-str]
              Replace occurences of replace-str  in  the  initial
              arguments  with  names  read  from  standard input.
              Also, unquoted blanks do not  terminate  arguments.
              If  replace-str  is  omitted,  it  defaults to "{}"
              (like for `find -exec').  Implies -x and -l 1.



--
Mike A. Harris                                     Linux advocate     
Computer Consultant                                  GNU advocate  
Capslock Consulting                          Open Source advocate

Want to try a new high performance open source web server?  Try Caudium!
http://caudium.org            http://caudium.sourceforge.net



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

Reply via email to