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/' \
18 [ $msgs -gt 1 ] && pl=s
19 echo "$msgs mensaje$pl nuevo$pl (de $jids)"