3 psi_profile_dir=~/.psi/profiles/luca
5 events_files="$psi_profile_dir"/events-*.xml
8 msgs=`egrep "$regex" $events_files | wc -l`
9 jids=`egrep "$regex" $events_files \
10 | sed 's/.*<jid>\(.*\)<\/jid>.*/\1/' | sort -u`
15 [ $msgs -gt 1 ] && pl=s
16 echo "$msgs mensaje$pl nuevo$pl (de $jids)"