Hi,
Thanks for replying. This is the script which emails the disk usage report.
#!/bin/sh
#Writing to a file
exec > report.txt
#Check the amount of disk space
checksize=`df -h /test`
echo $checksize
#email the file
cat report.txt | mail abc@xyz.com
And this is how it displays on the email
Filesystem 1M-blocks Used Available Use% Mounted on /abc/def/xyz 34567 2345 12345 90% /test
But i want it to be displayed like this
Filesystem 1M-blocks Used Available Use% Mounted on
/abc/def/xyz 34567 2345 12345 90% /test