[platypus-dev] Re: Using ARGV in a Bash Script
- From: Cameron Kaiser <spectre@xxxxxxxxxxxx>
- To: platypus-dev@xxxxxxxxxxxxx
- Date: Thu, 17 May 2007 16:46:08 -0700 (PDT)
> > 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. -
- Follow-Ups:
- [platypus-dev] Re: Using ARGV in a Bash Script
- From: Methnen (AKA Jamie)
- References:
- [platypus-dev] Re: Using ARGV in a Bash Script
- From: Methnen (AKA Jamie)
Other related posts:
- » [platypus-dev] Using ARGV in a Bash Script
- » [platypus-dev] Re: Using ARGV in a Bash Script
- » [platypus-dev] Re: Using ARGV in a Bash Script
- » [platypus-dev] Re: Using ARGV in a Bash Script
- » [platypus-dev] Re: Using ARGV in a Bash Script
- » [platypus-dev] Re: Using ARGV in a Bash Script
- » [platypus-dev] Re: Using ARGV in a Bash Script
- [platypus-dev] Re: Using ARGV in a Bash Script
- From: Methnen (AKA Jamie)
- [platypus-dev] Re: Using ARGV in a Bash Script
- From: Methnen (AKA Jamie)