Created
June 30, 2020 08:43
-
-
Save thomasgroch/d250866fd25f20be511eb515058f962f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| els=($(curl -s 'https://jsonplaceholder.typicode.com/photos' | jq '.[] | select(.url|test("^(https)://")) | .url')); selected=${els[$RANDOM % ${#els[@]} ]}; selected="${selected%\"}"; selected="${selected#\"}"; echo $selected | pbcopy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment