Re: Can't pipe files to compileHelp
Re: Can't pipe files to compileHelp
- Subject: Re: Can't pipe files to compileHelp
- From: Cameron Hayne <email@hidden>
- Date: Sun, 4 Aug 2002 10:32:28 -0400
On Sunday, August 4, 2002, at 10:04 am, Bill Cheeseman wrote:
You could do your example using xargs like this:
ls *Help.rtf | xargs compileHelp -o Help.plist
Thanks. Andy's first solution is a little better for compileHelp,
because
compileHelp actually needs as input both rtf and rtfd files. Piping with
xargs would have to be done in two commands to accomplish that.
What's wrong with:
ls *Help.rtf *Help.rtfd | xargs compileHelp -o Help.plist
But, apart from that, why do you say that xargs is possibly a better
way?
Not likely relevant in this case, but xargs has facilities to handle
large amount of input (e.g. lots of Help* files). And it is more general
in that you could be generating your list of Help* filenames in some
other way and the xargs solution would still work.
--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.