Created
December 21, 2020 05:41
-
-
Save AFutureD/c58fa6b0dad5d19a2ee45bbf8b0dfa51 to your computer and use it in GitHub Desktop.
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
fl () { | |
API="" | |
ret_json=$(curl -s -H "Content-Type: application/json" -X POST -d "{\"content\":\"$*\"}" $API) | |
echo $ret_json | sed "s/.*\"message\":\([^,}]*\).*/\1/" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment