Migrate from .stow-rename to --dotfiles
This commit is contained in:
parent
e344a02c65
commit
c9c512486d
23 changed files with 0 additions and 2 deletions
11
dot-local/share/sav-quotes/get-xkcdb-quotes
Executable file
11
dot-local/share/sav-quotes/get-xkcdb-quotes
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
sum() {
|
||||
declare -i acc
|
||||
for i; do acc+=i; done
|
||||
echo $acc
|
||||
}
|
||||
|
||||
curl -s 'http://www.xkcdb.com/?random1' |
|
||||
hxnormalize -i 0 -l 99999999999 -x | hxselect -cs '<br>\n%<br>\n' 'span.quote' |
|
||||
html2text -b 0 | hxunent | sed '$d; s/ *$//' | sed '$d'
|
||||
exit $(sum ${PIPESTATUS[*]})
|
Loading…
Add table
Add a link
Reference in a new issue