Monthly Archives: May 2011

ii aka IRC It – the tiniest IRC Client

Today I came across a wonderful IRC Client http://tools.suckless.org/ii/

Install II
Download it from above URL and RTFM to install.

Start
ii -help

OR

ii -i IRCDIR -s irc.freenode.net -m SOMENICK -f FULLNAME &

Explanation
Use any empty directory name on the place of IRCDIR
“&” will background the process

Now you will get “out” files in IRCDIR . Use “tail -F out” on those files to check what’s going on.

Logging In (for freenode irc)
echo "/j nickserv identify SOMENICK SOMEPASSWD" > IRCDIR/irc.freenode.net/in

Join Channel
echo "/j #CHANNELNAME" > IRCDIR/irc.freenode.net/in

Talk in Channel
echo "SOMEMSG" > IRCDIR/irc.freenode.net/#CHANNELNAME/in

Send Private Message
echo "/privmsg SOMEOTHERNICK SOMEMSG" > IRCDIR/irc.freenode.net/#CHANNELNAME/in

Part / Leave Channel
echo "/l bye" > IRCDIR/irc.freenode.net/#CHANNELNAME/in

Thanks to drewid[rogue]@irc.oftc.net on #ii

Advertisements

mass renaming songs.pk files

I don’t like the prefix songs.pk mp3 files have. But you download multiple files and using `mv` for each file is PITA. So I always prefer the following method. But I keep forgetting the syntax and have to refer
tldp abs. So today putting it as a blog post.

for i in *.mp3; do mv -i "${i}" "${i##\[*\-\ }" ; done

enjoy!!!