Subject: Re: Bourne shell question
To: None <netbsd-help@netbsd.org>
From: Chuck Yerkes <chuck+nbsd@2003.snew.com>
List: netbsd-help
Date: 12/19/2002 12:21:22
Hmmm it's seems easier in Sendmail rulesets than /bin/sh :)
Quoting Daniel Eggert (danieleggert@mac.com):
> I hope this is not completely OT:
>
> In my shell script I have two variables. Something like this:
> partitions="ld0a ld0b ld1a"
> paths="/a /b /c"
> Now I want to loop through these and access
> 'ld0a' with '/a'
> 'ld0b' with '/b'
> 'ld1a' with '/c'
> Is there any easy / clever way to do this in /bin/sh?
>
> I want to use the shell script from the INSTALL kernel memery file
> system, so I cannot use any fancy stuff liek perl.
>
> Daniel