|
@@ -1,6 +1,6 @@
|
|
|
#!/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
|
|
|
-g|--gattini)
|
|
@@ -19,4 +19,4 @@ case $1 in
|
|
|
;;
|
|
|
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
|