Small script for YubNub

EN: A recent NewsForge article introduces into the advantages of YubNub - "a (social) command line for the web". I personally use the firefox keyword search a lot, but the advanced syntax of YubNub seems to offer more and you don't have to create a local keyword for every search site you use. So I will give YubNub a try in the next days.

Unfortunately the link to a shell script in the article is broken so I wrote a short query script myself:


BROWSER=firefox # you can use w3m to get output in the shell
COMMAND=$(echo $* | sed -e 's/ /+/g')

$BROWSER http://yubnub.org/parser/parse?command=$COMMAND

Copy it into a file (e.g. yubnub.sh) and make it executable.

The script runs fine with ksh and bash for my test searches. Some examples:

yubnub.sh wp peace
yubnumb.sh man ls
yubnumb.sh ls
yubnub.sh sing Johnny Cash Desperado


Reece B. Theobald hat gesagt…

A windows batch file to launch yubnub from the windows environment. It takes a maximum of 9 params.

@echo off

set BROWSER="C:\Program Files\Internet Explorer\IEXPLORE.EXE"
start %BROWSER% "http://yubnub.org/parser/parse?command=%1 %2 %3 %4 %5 %6 %7 %8 %9"

Copy it into a file (e.g. yubnub.bat) and put it in your c:\windows\system32 folder.

yubnub passwd 8

Jonathan hat gesagt…

konrad, reece - thanks!