I have a BASH script with a condition similar to this one:
dirImg="/var/log/junk"
sizeLimitMsg="1 gig"
if [ 0 == "$fileSize1" ];then
echo "All directories under $dirImg are within the allowed\
$sizeLimitMsg size limit" >> $emailBody
else
#do something else
fi
It produces output with extra white space:
All directories under /var/log/junk are within the allowed 1 gig size limit
I'm guessing the extra and unwanted white space is coming from indenting the variable $sizeLimitMsg in the conditional above.
Is there anyway I can both continue that line and indent that code without getting the extra and unwanted white space?