[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any chance of multi-dimensional arrays?

From: Greg Wooledge
Subject: Re: Any chance of multi-dimensional arrays?
Date: Mon, 26 Nov 2012 08:45:23 -0500
User-agent: Mutt/

On Sun, Nov 25, 2012 at 06:33:19AM +0100, Rene Herman wrote:
> I'm currently writing a larger bash script to manage my (ogg vorbis) 
> music collection, including maintaining tags. Vorbis files can and 
> (mine) often will contain repeated tags such as, say, "artist=David 
> Crosby" and "artist=Graham Nash" and so on and as such, my "artist" 
> variable is an array.

Sounds like what you actually want is an associative array of lists,
which is not something bash provides.  You can mimic it using associative
arrays with specially mangled keys (bash 4.0 and up), but it is not a
native feature of the language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]