May 22, 2024, 13:16
#!/bin/zsh typeset -A server server=( sister 'xx:xx:xx:xx:xx' jackyl 'xx:xx:xx:xx:xx' troll 'xx:xx:xx:xx:xx' squatter 'xx:xx:xx:xx:xx' ) if [ -z "$1" ]; then foreach i in ${(k)server}; do print $i = ${server[$i]} done else for i in $*; do wakeonlan ${server[$i]} done fi