@@ -3829,7 +3829,7 @@ Special variables
38293829 less than or equal to the value of right operand; if yes, then the condition becomes true. [ $a -le $b ] is true.
38303830
38313831~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3832- o LogicalOperators
3832+ o LogicalOperators
38333833~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38343834 https://opensource.com/article/19/10/programming-bash-logical-operators-shell-expansions
38353835 a AND b
@@ -3883,6 +3883,7 @@ Special variables
38833883~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38843884 o if statement
38853885~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3886+ continue from here
38863887 https://acloudguru.com/blog/engineering/conditions-in-bash-scripting-if-statements
38873888 https://www.tutorialspoint.com/unix/if-elif-statement.htm
38883889 if-statement.sh
@@ -3905,6 +3906,7 @@ Special variables
39053906 o Case statement
39063907~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39073908 https://www.tutorialspoint.com/unix/case-esac-statement.htm
3909+ similar to switch case in java.
39083910 casestatement.sh
39093911~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39103912 o For Loop
@@ -3967,6 +3969,8 @@ done
39673969 https://www.baeldung.com/linux/ifs-shell-variable
39683970 https://bash.cyberciti.biz/guide/$IFS
39693971
3972+ ifs.sh
3973+
39703974 Internal Field Separator (IFS)
39713975
39723976The special shell variable IFS determines
@@ -3990,10 +3994,17 @@ The special shell variable IFS determines
39903994~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39913995 o Writing Disk Utilization script
39923996~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3997+ https://www.cyberciti.biz/tips/shell-script-to-watch-the-disk-space.html
39933998 https://www.2daygeek.com/linux-shell-script-to-monitor-disk-space-usage-and-send-email/
39943999 https://linoxide.com/check-disk-usage-is-out-of-space/
39954000 https://gist.github.com/M1ke/5300297
4001+
4002+ /usr/bin/cat /proc/loadavg | awk '{print $1}' | awk '{ if($1 > 80) printf("Current CPU Utilization is: %.2f%\n"), $0;}' | mail -s "High CPU Alert" example@gmail.com
4003+
4004+ df -H | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }'
4005+
39964006 https://kedar.nitty-witty.com/blog/simple-shell-script-to-monitoring-disk-space-on-a-linux-machine
4007+ diskspace1.sh
39974008 cpumemdisk.sh
39984009~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39994010 o Trouble shooting debugging shell scripts
0 commit comments