I was trying to apply these instructions on how to automatically dim brightness when battery is low, but in the answer, this command didn't work with me
> percent_left=$((100 * `cat /sys/class/power_supply/BAT0/charge_now` / ` cat /sys/class/power_supply/BAT0/charge_full`))
It said
cat: /sys/class/power_supply/BAT0/charge_now: No such file or directory
cat: /sys/class/power_supply/BAT0/charge_full: No such file or directory
bash: 100 * / : syntax error: operand expected (error token is "/ ")
Any solution!! I'm a beginner Ubuntu user