commandlinefu.com random entry parser

I’ve written a small perl script to parse random entries from the extremely usefull commandlinefu.com website. Quoting from their site:

Command-Line-Fu is the place to record those command-line gems that you return to again and again.

The script code is very “clean”. I can almost say that it’s written in a very python-ish way.
Sample output:%./cfu.pl
CMD: for (( i = 0; i < 100; i++ )); do echo "$i"; done
URL=http://www.commandlinefu.com/commands/view/735/perform-a-c-style-loop-in-bash. Title=Perform a C-style loop in Bash.
Description: Print 0 through 99, each on a separate line.
%./cfu.pl
CMD: rsync -av -e ssh user@host:/path/to/file.txt .
URL=http://www.commandlinefu.com/commands/view/20/synchronise-a-file-from-a-remote-server Title=Synchronise a file from a remote server
Description: You will be prompted for a password unless you have your public keys set-up.

You can get it from here: commandlinefu.com random entry parser perl script

As far as I’ve tested, it works out of the box on default perl installations of Debian, Gentoo and Mac OS X.

3 Responses to “commandlinefu.com random entry parser”

  1. March 27th, 2009 | 11:50
    Using Mozilla Firefox Mozilla Firefox 3.0.7 on Ubuntu Linux Ubuntu Linux

    Thanks, I’ve been searching for something like this (service).

  2. March 28th, 2009 | 10:36
    Using Mozilla Firefox Mozilla Firefox 3.0.7 on Mac OS X Mac OS X 10

    I was actually expecting a ruby rewrite of this from you. Weird!

  3. April 8th, 2009 | 12:41
    Using Mozilla Firefox Mozilla Firefox 3.0.8 on Ubuntu Linux Ubuntu Linux

    Nah, I’ve changed. 😛 I’m now writing Ruby ports only for stuff that I find challenging or that I know I’m gonna use.

Leave a reply