I have this little script in Bash to raise or lower the brightness of my laptop:
#!/bin/bash
clear
sudo tee /sys/class/backlight/radeon_bl0/brightness <<< 10
In which "10" is the numerical value to change.
My question is: How do I open the script from a terminal, ask for a number, and then execute that number?