Created
September 15, 2018 00:07
-
-
Save nemesis64/4f7f286980737e48a290c5dc3ca20eef to your computer and use it in GitHub Desktop.
bash Script for urban dictionary definition
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
| curl -s "https://api.urbandictionary.com/v0/tooltip?term=$1" | python3 -c "import sys, json, html; print(html.unescape(json.load(sys.stdin)['string']).split('\n',2)[1])" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
also bash function