Below is the my cide which is working fine but I am not getting the output indesired format.there is some problem in alignment.Can someone help me to correct this?
if [[ "${ReturnCode}" == "0" ]];
then
summary=$(
echo -e "Please review the log file of auto coloclean utility.\n";
echo -e "==========================================================================================";
echo -e "==========================================================================================";
echo -e "\nStarted on/at : \"${sdate}\"\n";
echo -e "\nCompleted on/at : \"${edate}\"\n";
echo -e "==========================================================================================";
echo -e "Final Space statistics for mount points having space utilization >=95%.";
echo -e "==========================================================================================";
echo -e "\n\"${title}\"";
echo -e "\n\n\n\n\n\n\"${stat}\"";
echo -e "\nTo see the contents of the log file either use: zcat <filename> -or- uncompress <filename> and then cat <filename>.");
echo "${summary}" | tee -a "${colocleanup_sh_log_file}";
exit_code=0;
fi
sendEmail;
Output:-
Please review the log file of auto coloclean utility. ========================================================================================== ========================================================================================== Started on/at : "Fri Sep 16 10:09:18 GMT 2011" Completed on/at : "Fri Sep 16 10:16:17 GMT 2011" ========================================================================================== Final Space statistics for mount points having space utilization >=95%. ========================================================================================== "Filesystem Size Used Avail Use% Mounted on" "/dev/rootvg/rootlv 1008M 958M 0 100% / 16G 14G 2.3G 86% /mnt/projects/stp2qa1_app_runtime 16G 14G 2.6G 85% /mnt/projects/stp2int1_web_runtime 13G 11G 1.8G 86% /mnt/projects/stp2perf1_web_runtime 13G 11G 1.8G 86% /mnt/projects/stp2perf2_web_runtime 16G 14G 2.3G 86% /mnt/projects/ual1int1_web_runtime" To see the contents of the log file either use: zcat -or- uncompress and then cat .