I want to check particular disk utilization which exceeds 90% and want to send a mail on the same. I am getting below error while running the script.% ./file_system_alert.sh./file_system_alert.sh: syntax error at line 7: `usep=$' unexpectedScript#!/bin/shAlert=90df -kh /oraclebkup|awk '{ print $5   $1 }'| while read output;do  echo $output  usep=$(echo $output|awk '{ print $1}'|cut -d'%' -f1)  partition=$(echo $output | awk '{ print $2 }' )if [ $usep -ge $Alert ]; then    echo Running out of space \$partition ($usep%)\ on $(hostname) as on $(date) | mailx -s Alert: Disk space is almost full $usep% Daniel.RanjithKumar@xyz.comfidone
Linux shell script to monitor particular disk
shell;scripting;disk