Created
August 10, 2018 03:20
-
-
Save ryumei/0d35af7b30d199111c58e8732edc3157 to your computer and use it in GitHub Desktop.
Get an oneline quote with timestamp
This file contains 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
#!/bin/sh | |
API_URL="https://talaikis.com/api/quotes/random/" | |
curl -XGET "$API_URL" | sed -e "s/{/{\"timestamp\":`date '+%s'`,/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example Output is