5 ms·
Here it is with piping so you don't have to litter your working directory: curl -s https://duckduckgo.com/lite/?q=example.com | grep -m1 "'result-link'"
by rlue 8y ago
Here it is with piping so you don't have to litter your working directory:
curl -s https://duckduckgo.com/lite/?q=example.com | grep -m1 "'result-link'"
curl -sd "q=example.com" https://duckduckgo.com/lite/ | grep -m1 "'result-link'"
- 3xblah 8y agoThen you cannot do diff a.htm b.htm Send the output to /tmp or some directory mounted as tmpfs. My working directory is always mounted tmpfs. This is how I keep things fast and clean.
- agumonkey 8y agoAnd for xpath lovers curl -sd "q=example.com" https://duckduckgo.com/lite/ | xmllint -html -xpath '//a[@class = "result-link"]/@href' - curl -s https://duckduckgo.com/lite/?q=example.com | xmllint -html -xpath '//a[@class = "result-link"]/@href' -