All pastes #477486 Raw Edit

ansa

public text v1 · immutable
·published 2007-05-08 17:52 UTC
rendered paste body
#!/bin/bash
# news.sh ver 2
# Questo script visualizza nel terminale le notizie del momento grazie a www.ansa.it
# Script sotto licenza GPL
# marcopresti.altervista.org
# MarcuZ@Debian

wget http://www.ansa.it/main/notizie/awnplus/italia/synd/ansait_awnplus_italia_medsynd_Today_Idx.xml
cat ansait_awnplus_italia_medsynd_Today_Idx.xml | grep title | cut -d ">" -f2 | cut -d"<" -f1 | cut -d"." -f4> notizie
rm ansait_awnplus_italia_medsynd_Today_Idx.xml #elimina il file
giorno=’date +%d/%b/%Y’ #creo la variabile giorno
ora=’date +%H:%M’ #creo la variabile ora
clear
	echo ”     Le notizie di oggi `$giorno` alle ore `$ora` sono:”
	cat notizie -b #stampo a schermo le notizie
	echo “”
rm notizie