Bash.org quotes added.
This commit is contained in:
parent
d3f3642697
commit
e1f7d87c91
11
modules/bash/bash.sh
Executable file
11
modules/bash/bash.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
[ -f functions.sh ] && source functions.sh
|
||||||
|
|
||||||
|
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>*}"
|
||||||
|
quote="$(echo "$quote" | html2text)"
|
||||||
|
msg "$2" "$quote"
|
||||||
|
exit 0
|
Loading…
x
Reference in New Issue
Block a user