#!/usr/bin/ksh
#ESOreportEPO
dd=$1
prem=N
echo "HISTORIQUE EPOC DEPUIS LE $dd"
echo "----------------------------------------------------------------"
ebreport history -a -since $dd | while read lig
do
    titre=`echo $lig | cut -c1-4 2>/dev/null`
    if [ $prem = "O" ]
    then
        echo $lig
    fi
    if [ "$titre" = "Time"  ]
    then
        prem="O"
    else
        prem="N"
        if [ "$titre" = "**It" ]
        then
            echo " "
	    echo $lig
    	fi
    fi
done
