i have a fresh partition /dev/sda4 of 4 GB for cache and it is mounted
on /cache.

now i want to make a automated script which cleans the cache after it
reaches 90%...

i am complete newbie in scripting and awk..


what i got after studing is this
df -h | grep /dev/sda4 | awk '/dev/sda4 { print $6 "\t: " $5}'

so that it will tell me /cache is how much full..

now please help me to move further....

or send me the script if you have one.

thanks.....

Reply via email to