bash arrays
From: Amadeus (nobody_at_nowhere.org)
Date: 04/30/04
- Next message: John-Paul Stewart: "Re: Compiling windows apps on linux"
- Previous message: Sean G Gilley: "what am I looking for? anonymizer? proxy?"
- Next in thread: Ingo Strauch: "Re: bash arrays"
- Reply: Ingo Strauch: "Re: bash arrays"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Apr 2004 13:11:04 -0400
Is there a way to extract a contiguous subarray of an array in bash?
I want to write a bash script which takes several arguments.
The first argument is mandatory, and is processed separately.
The rest of the arguments are file names which will be processed
in a loop.
So I need to extract the range 2-$# in $@. Can it be done?
Something like the : operator in matlab.
Thanks!
- Next message: John-Paul Stewart: "Re: Compiling windows apps on linux"
- Previous message: Sean G Gilley: "what am I looking for? anonymizer? proxy?"
- Next in thread: Ingo Strauch: "Re: bash arrays"
- Reply: Ingo Strauch: "Re: bash arrays"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|