_powerwake() { FILES="/var/cache/powerwake/ethers /etc/ethers" local cur; COMPREPLY=(); cur=${COMP_WORDS[COMP_CWORD]}; COMPREPLY=( $( compgen -W '$(/bin/cat ${FILES} 2>/dev/null| /usr/bin/awk "{print \$2}")' -- $cur ) ); } complete -F _powerwake powerwake