echo statement issue

Hi All,

I am pasting my code below

if [ -e OFR_Configlist.txt ] # e means file exists
then
echo OFR_Configlist exists >> OFR_Backup_Configfiles.log
else
echo OFR_Configlist Not exists >> OFR_Backup_Configfiles.log
exit
fi

How can i show the echo message in console also at the same time?
I dont want to write one more echo line without >> for that....
please help me..

Regards
Subin

echo OFR_Configlist exists | tee -a OFR_Backup_Configfiles.log

The -a option in tee appends the text to the file.

Yes.. done thanks

That was wonderful