complete -W "$(echo `cat ~/.ssh/known_hosts | cut -f 1 -d ' ' | sed -e s/,.*//g | uniq | grep -v "\["`;)" ssh
complete -o default -W "$(screen -ls | cut -f 2 -s | tr '\n' ' ')" screen
complete -o default -W "`echo $(cat /path/to/file | grep 'lines i want')`" \ [command]
is easier written as
complete -o default -W "`echo $(grep 'lines i want' /path/to/file)`" \ [command]
$(command) allows them to be nested arbitrarily, whereas `command` can't nest.