I have problem and cant still handle with it. :( Here is my code
declare -i disk_usage_rate=$(df -h /appdata/SCT_CDR | cut -d '%' -f 1 | awk 'NR==2{print $5}')
while ["$disk_usage_rate" -gt 80]
do
...
...
done
I get the disk usage rate from df -h command. But in while loop I get the followig error. Btw it is bash script.
bash: [84: command not found
I tried so many things but I didnt solve yet.