I am using below shell script for getting certail data
test.sh
adb shell dumpsys battery | awk '/Battery current/{print}'
I get below output in terminal
Battery current : -286
How to check if Battery current value is > -1000 then execute an command "Command1" else execute "Command 2"
Please help