In below command, the echo part gives the body, -s gives the subject, -a is the path of file and email address at the end
echo "please find the file" | mailx -s "server load logs" -a load.logs useremail@domain.com
4. Extract specific parts of a log file
* use this command carefully as it is a low-level data copying and conversion tool. It is very powerful but also potentially dangerous if used incorrectly, as it can overwrite data or disks without warning.