Shell script for automatic conversion of files in tar files
Hello
i am new to shell script
i need a shell script that sense the space is almost filled upto 80%, after then, directories in particular dir. get converted to tar files.
when i do df -h then following output come
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
144G 2.0G 135G 2% / (This portion the shell script has to sense)
/dev/sda1 99M 15M 80M 16% /boot
none 2.0G 0 2.0G 0% /dev/shm
can anybody do this for me, it;s very urgent
thanks in advance
|