Skip to content

Instantly share code, notes, and snippets.

@dpk
Created March 8, 2013 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dpk/5119620 to your computer and use it in GitHub Desktop.
Save dpk/5119620 to your computer and use it in GitHub Desktop.
exec tcpclient irc.freenode.net 6667 sh <<EOF
echo "NICK topicsed" >&7
echo "USER topicsed +iw swtopic :topicsed" >&7
echo "JOIN #swhack" >&7
cat <&6 | sed -n '/TOPIC #swhack :.*/ s/.*:\(.*\).*/\1/p'
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment