From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7121 invoked by alias); 3 Jan 2012 01:34:07 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16688 Received: (qmail 10881 invoked from network); 3 Jan 2012 01:34:05 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 74.125.83.43 as permitted sender) Message-ID: <4F0263FB.2000202@gstaedtner.net> Date: Tue, 03 Jan 2012 03:12:11 +0100 From: =?UTF-8?B?VGhvbWFzIEdzdMOkZHRuZXI=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111213 Thunderbird/8.0 MIME-Version: 1.0 To: zsh-users@zsh.org Subject: read/write associative array from/to file X-Enigmail-Version: 1.3.4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi list, I want to read and write an associative array from/to a file, i.e. a very simple key-value database. Is this possible; if so, how? If not, what would be the most practical solution to work with a file like this? --- key1 value1 key2 value2 key3 value3 ... --- Thanks in advance, thomasg