Hi all!
here is a sample of the file i am working on :
$ cat toto.txt
$
20030613150250:Flux:ASS_IARD
20030613150250:Nombre d enregistrements Ecrits :27
20030613150250:Flux:ASS_TIER
20030613150250:Nombre d enregistrements Ecrits :27
20030613150251:Flux:ASS_PERS
20030613150251:Nombre d enregistrements Ecrits :52
20030613150251:Flux:LIEN_CONT
20030613150251:Nombre d enregistrements Ecrits :27
20030613150252:Flux:LIEN_EA
20030613150252:Nombre d enregistrements Ecrits :52
20030613150252:Flux:ASS_MODU
20030613150252:Nombre d enregistrements Ecrits :180
i want to obtain the following result :
ASS_IARD:27
ASS_TIER:27
ASS_PERS:52
LIEN_CONT:27
LIEN_EA:52
ASS_MODU:180
I already wrote something....
:
if [ -f toto.txt ]
then
while read LINE
do
if [ `echo ${LINE} | grep Flux` ]
then
echo $LINE | awk -F ":" '{print $3}' >> ./LOG.wri
fi
done < toto.txt
fi
i know i feel pity for this one.......
PLEASE HELP
Regards
Howard