Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

part of an associativz array



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