#!/bin/bashif["x$1"="xread"];thenOUT=$(sudoiotop-b-n1-P-k-qq|sed-n's/^Total DISK READ:\s*\([0-9]*\)\..*$/\1/p')elif["x$1"="xwrite"];thenOUT=$(sudoiotop-b-n1-P-k-qq|sed-n's/^.*Total DISK WRITE:\s*\([0-9]*\)\..*$/\1/p')elseexit1fiif["$OUT"-gt5000];thenecho"<fc=#FF0000>${OUT}</fc>Kbs"elif["$OUT"-gt2000];thenecho"<fc=#FFFF00>${OUT}</fc>Kbs"elif["$OUT"-gt100];thenecho"<fc=#00FF00>${OUT}</fc>Kbs"elseecho"${OUT}Kbs"fi