mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
chore(packages): reorganize scripts
This commit is contained in:
10
packages/scripts/literature-quote.sh
Executable file
10
packages/scripts/literature-quote.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
ROW=$(curl -Ls http://kmein.github.io/logotheca/quotes.csv | shuf -n1)
|
||||
|
||||
(
|
||||
printf '%s\n\n— %s: _%s_, %s\n' \
|
||||
"$(echo "$ROW" | xsv select 4)" \
|
||||
"$(echo "$ROW" | xsv select 1)" \
|
||||
"$(echo "$ROW" | xsv select 2)" \
|
||||
"$(echo "$ROW" | xsv select 3 | tr : ,)"
|
||||
) | sed 's/ | /\n/g;s/ || /\n\n/g;s/"\(.*\)"/\1/'
|
||||
Reference in New Issue
Block a user