This commit is contained in:
encrypt 2016-09-29 12:29:31 +02:00
parent 325489bae6
commit fbd4539751

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
match=$(date +"%a" | tr '[:upper:]' '[:lower:]' | sed 's/mon/lunedi/;s/tue/martedi/;s/wed/mercoledi/;s/thu/giovedi/;s/fri/venerdi/;s/sat/sabato/;s/sun/domenica/') match=$(date +"%a" | tr '[:upper:]' '[:lower:]' | sed 's/mon/lunedì/;s/tue/martedì/;s/wed/mercoledì/;s/thu/giovedì/;s/fri/venerdì/;s/sat/sabato/;s/sun/domenica/')
case $1 in case $1 in
-g|--gattini) -g|--gattini)
@ -19,4 +19,4 @@ case $1 in
;; ;;
esac esac
curl -s "http://immaginibuongiorno.it" | grep "$match" | grep -oP "(?<=src=\").*(?=\")" | cut -d '"' -f 1 | shuf -n 1 curl -s "http://immaginibuongiorno.it" | sed 's/\/>/\/>\n/g' | grep -i "$match" | grep -v "shaken" | grep -oP "(?<=src=\").*(?=\")" | cut -d '"' -f 1 | shuf -n 1