-
-
Save forestbaker/80a0b54b86cdcb65090c to your computer and use it in GitHub Desktop.
Bash 1-liner IRC client
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
# Fully functional IRC client. Takes server as arg, raw IRC commands on stdin, outputs full transaction labelled for downstream filters | |
{ { tee >(sed 's/^/< /' >&4) <&3 | sed -un 's/^PING/PONG/p' & cat ;} | tee >(sed 's/^/> /' >&4) >&3 ;} 3<>/dev/tcp/$1/6667 4>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment