Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
part of an associativz array
- X-seq: zsh-users 10119
- From: Marc Chantreux <marc.chantreux@xxxxxxxxxxxxxxxxxx>
- To: zsh-users <zsh-users@xxxxxxxxxx>
- Subject: part of an associativz array
- Date: Fri, 31 Mar 2006 22:35:10 +0200
Hi all,
some days ago, someone posted this fantastic code :
local -A user
while { IFS=: read 'user['${^=:-login passwd uid gid gecos home shell}']' } {
if (( ${user[uid]} > 100 )) { print $user[login] }
}
< /etc/passwd
very perlish way to do ! i loved it ... but now i want to extract a part of the aray.
something like :
$user[login,uid]
any idea ?
regards
mc
Messages sorted by:
Reverse Date,
Date,
Thread,
Author