Hi,
I am checking if a file exists or not and based on the result I am sending an email. The email part works fine but the content of the email comes in a single line and I am not able to display it in diferent lines.
if [ ! -f /abc/batch/readyFile/errorOccured.ready ]; then
echo "Hi, \\n An exception exists in the process. \\n Regards \\n Test" | mail -s "Error in Process" shanth.chandra@abc.com
else
echo "File exists"
fi
-----------------------------------------------------------------------
The email content is displayed as:
Hi, \n An exception exists in the process. \n Regards, \n Test
but rather I need the email content as:
Hi,
An exception exists in the process.
Regards,
Test
-----------------------------------------------------------------------
regards
Prashanth