#!/sbin/sh #------------------------------------------------------------------------- # @(#) rech_gros_FS.sh # Nom / Name : recherche des FS dont le taux d'occupation depasse 80% # Type / Type : job shell (UNIX) # Auteur / Author: Benjamin LISAN date creation: 10/01/2000 # Contexte utili.: cron # Comment. : version pour SUN 2.5 et > #------------------------------------------------------------------------- echo " capacity % kbytes avail Mounted on_______" df -k|grep -v Mounted |sed "s:%::" |awk '{if ($5 > 80) {printf ("\t%3d %% \t%10d \t%10d \t%s\n", int($5), int($2), int($4), $6) }}' |sort -r