Re: How to pass arguments with '*' to execvp()?

From: Alex Vinokur (alexvn_at_x-privat.org)
Date: 11/27/05


Date: 27 Nov 2005 17:30:02 +0100


"Pascal Bourguignon" <spam@mouse-potato.com> wrote in message news:87zmnrt6rg.fsf@thalassa.informatimago.com...
[snip]
> What you want to do is:
>
> 1- collect the file names matching *.c into a list.
>
> 2- build the list of arguments as "ls", "-1" followed by the list
> collected by step 1.
>
> 3- call execvp with cmd and the list built by step 2.
[snip]

OK.

But what to do with the following command line:
         find . -name "*.c" -print
?

-- 
 Alex Vinokur
     email: alex DOT vinokur AT gmail DOT com
     http://mathforum.org/library/view/10978.html
     http://sourceforge.net/users/alexvn


Relevant Pages

  • Re: Intro...
    ... Alex writes: ... I've been lurking for a while now, ... Moshe Schorr ...
    (soc.culture.jewish.moderated)
  • Re: Books & Cliparts
    ... In article, Alex' Interrants ... I think you are referring to X-Ample's Tracer Professional. ...
    (comp.sys.acorn.misc)
  • Re: Obsucure Inquier article about Intel mentions VMS (and not any other OS)
    ... > Alex Daniels wrote: ... <SNIP> ... > the customers just won't deal with the vendoragain. ... Linux may or may not be with hp, it is after all available on a number of hp ...
    (comp.os.vms)
  • Re: PIRAHA: The Film
    ... Alex is most fun when he's not serious. ... Not that he's particularly funny. ...
    (sci.lang)
  • Re: virtual functions vs speed
    ... 600 clockcycles to call one nonvirtual ... 657 milliseconds per 50000000 calls of one nonvirtual function of class Foo00 ... Alex Vinokur ...
    (comp.lang.cpp)