Bash script loop to monitor something like disk space
Loops in bash are something Ive covered before, including parsing a file record by record (HERE), but one of the other uses I have frequently is a never ending script which watches something changing.