[platypus-dev] Re: Using ARGV in a Bash Script

> > Unless you have a specific need for this, why not just use $0, $1,  
> > etc.?
> 
> In this case the input is going to be an undetermined number of  
> items.  It may be 0 or it may be 1,000,000.
> 
> I need a way to intelligently move through whatever was input.  So  
> just using $0, $1, and so forth wouldn't cut it in this case.  Unless  
> there is a way to know how many of those are available and cycling  
> through them that I don't know about, which wouldn't be surprising as  
> my Bash knowledge isn't deep.

You can use shift to iterate through arguments, but with an argument
size that potentially long, a shell language is probably not your best
bet. Have you considered doing it in AppleScript, perl or python?

-- 
------------------------------------ personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckaiser@xxxxxxxxxxxx
-- Due to budget cuts, the light at the end of the tunnel will be turned off. -

Other related posts: