Unfortunately the link to a shell script in the article is broken so I wrote a short query script myself:
#!/bin/sh
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
2 Kommentare:
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.
Example:
yubnub passwd 8
konrad, reece - thanks!
Kommentar veröffentlichen