Skip to content

Instantly share code, notes, and snippets.

@imtapps
Created April 11, 2013 16:41
Show Gist options
  • Save imtapps/5365003 to your computer and use it in GitHub Desktop.
Save imtapps/5365003 to your computer and use it in GitHub Desktop.
cat ~/.ssh/_config | grep -v 'github' | awk '/^Host/ { if($2 !~ /\*/) print $2;}' | xargs -I host ssh host 'cat /etc/motd'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment