Skip to content

Instantly share code, notes, and snippets.

@masonicboom
Created September 10, 2013 18:05
Show Gist options
  • Select an option

  • Save masonicboom/6513180 to your computer and use it in GitHub Desktop.

Select an option

Save masonicboom/6513180 to your computer and use it in GitHub Desktop.
DuckDuckGo from the command line, using w3m.
#!/bin/bash
query=$(echo "$@" | sed 's/ /%20/')
w3m -no-cookie "https://duckduckgo.com/?q=$query"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment