#!/bin/bash S="$(echo "$@" | sed -E 's, +,+,g')" g(){ curl -sS "https://suggestqueries.google.com/complete/search?client=firefox&q=$1" \ | sed -E 's,.*\[([^]]*)\].*,\1,;s,",,g' | tr , '\n' } d(){ curl -sS "https://duckduckgo.com/ac/?q=$1" \ | sed -E 's,"phrase":|[][{}"],,g' | tr , '\n' } paste -d , <(g $S) <(d $S) | column -t -s ,