Skip to content

Instantly share code, notes, and snippets.

@azbshiri azbshiri/
Created Jun 20, 2016

What would you like to do?
A simple script to easily get Bing’s image of the day
#!/usr/bin/env bash
bing_bg() {
local host=''
local path='HPImageArchive.aspx'
local query="format=js&idx=${1:-0}&n=1&mkt=en-US"
curl -s "$host/$path?$query" |\
jq --arg host "$host" -r '$host + .images[0].url'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.