Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
read/write associative array from/to file
- X-seq: zsh-users 16688
- From: Thomas Gstädtner <thomas@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: read/write associative array from/to file
- Date: Tue, 03 Jan 2012 03:12:11 +0100
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author