updated antidote
This commit is contained in:
parent
d2b2840b29
commit
f645247321
3 changed files with 28 additions and 4 deletions
|
@ -17,4 +17,8 @@ case "$1" in
|
|||
echo -n "Daily Hackerquote: "
|
||||
awk 'NR=='$((1 + RANDOM % $lines ))'{print;exit}' "$file"
|
||||
;;
|
||||
"fact")
|
||||
echo "Daily Facts:"
|
||||
curl -s 'https://randomfactgenerator.net/' | awk -v RS='</div>' '/<div class='\''f'\''>/{gsub(/.*<div class='\''f'\''>/,""); print "- " $0}'
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue