# 'Siri for bash' # example: # me:~$ source what.sh # me:~$ what is the root of pi # 1.772454 function jeannie(){ query=`printf "%s+" $@` result=`curl -s "https://ask.pannous.com/api?out=simple&input=$query"` echo $result say $result 2>/dev/null } alias what="jeannie what"