I've reworked one of my old shell scripts: the WolframAlpha commandline interface. This client uses the free WolframAlpha API. You can get your own API key at https://developer.wolframalpha.com/portal/apisignup.html (you need it in order to use this script as I'm not giving away my own key). After you've registered your key, put it into script's config section. Here goes a little screenshot to show you the looks of this script interface:
Hope it will be of some use to somebody ;). As always, the sources are in my Github repo.
WolframAlpha CLI interface
Tags:
/bin/sh,
api,
ash,
bash,
git,
github,
linux,
openwrt,
repo,
repository,
router,
script,
scripting,
scripts,
search,
shell,
suggestions,
terminal,
wolframalpha,
wolframalpha.com
Subscribe to:
Post Comments (Atom)
Love you script.. colors aren't working for me.. I'm assuming its an issue on my end.. but wouldn't mind some pointers.
ReplyDeleteDoes it give some errors or strange looking text? It works for me on multiple machines/environments, so I've no idea what could be wrong with it. What happens is you paste this into your shell?
ReplyDeleteecho -e `echo test | sed 's!test!\\\x1b[1;36m&\\\x1b[0m!g'`
It should output the word "test" in light-blue color.
Nice script! But the output is a mess on my Cygwin (Mintty, Zsh). I'm new to the unix style and have no idea how the color code works. Could you give some hint please?
ReplyDeleteI've test $ echo -e `echo test | sed 's!test!\\\x1b[1;36m&\\\x1b[0m!g'` and got "test" in #DFDFFD, which is light blue.
And a sample output: http://pastebin.com/1p4H7ggh
ReplyDeletechange #!/bin/sh to #!/bin/bash to fix the colors.
ReplyDeleteIt prints just an empty line for me
ReplyDelete