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 09:58:30 -0400
On Sunday, August 4, 2002, at 07:55 am, Bill Cheeseman wrote:
if I generate a list of the two files using ls and pipe it to the
compileHelp command, I'm told I have used the wrong number of
parameters:
ls *Help.rtf | compileHelp -o Help.plist
The error message says:
"usage: compileHelp [options] file..."
So it seems that compileHelp does not support getting its files from
stdin - it's just stupid that way.
Andy Lee has already responded suggesting a few ways you could do what
you wanted.
Here's another, possibly better way.
The 'xargs' utility is designed for exactly the situation you have
encountered. (man 1 xargs).
You could do your example using xargs like this:
ls *Help.rtf | xargs compileHelp -o Help.plist
--
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.