hi guys i am a student,
i need help with this script;
.....
SIZE=`du -ls`
if [ $SIZE -k -gt 100 ];
then echo "You have used more than 100k of disk space"
else echo "You have not used more than 100k of disk space"
fi
.....
im running it in the bourne shell, but i keep getting this error..
[: 6: 1892: unexpected operator
basically what i have to do is displaye a message about disk space if there is more than 100k free and if there is not..
regards
Stefan
Bookmarks