13 lines
380 B
Bash
Executable File
13 lines
380 B
Bash
Executable File
[ -f functions.sh ] && source functions.sh
|
|
|
|
set -f
|
|
quote="$(curl -s http://bash.org/?random)"
|
|
quote="$(echo "$quote" | grep -m 1 -A 10 '"Permanent link to this quote."')"
|
|
quote="${quote#*class=\"qt\">}"
|
|
quote="${quote//</<}"
|
|
quote="${quote//>/>}"
|
|
quote="${quote%%<p class*}"
|
|
quote="$(echo "$quote" | pandoc -t plain)"
|
|
msg "$2" "$(echo "$quote" | tr -cd '[:print:]')"
|
|
set +f
|