Load zsh/parameter module,% zmodload -i zsh/parameterand,% users=( $userdirs[(I)*] )
hosts=( ${$( cat /etc/hosts | cut -d : -f 1,7 | grep -v "#" )//:*/} )to get what I need.This has the same problem, but I don't know a better way well. Using some functions from Perl or some other language?