Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use hostname completion in Bash' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use hostname completion in Bash
Authored by: patpro on Jan 28, '04 11:52:18AM
well, since I've posted this hint few days ago, I've found a better command : replace the line "COMPREPLY..." with this one : (all on one line)

COMPREPLY=($(compgen -W '$( nireport . /machines name | egrep -v "localhost|broadcasthost")' -- $cur))


[ Reply to This | # ]