Hello again people. I am making a bash script to show a bar graph of load averages(uptime command) TO make the bars, I want to use just coloured spaces, but for some reason it wont work. Here is what I've done.
Gives me just a space without color. What gives? Maybe I used wrong format for printf? Because I just took that syntax with the %b and substituted with my own values. Thanks a bunch.Code:$ a="Hello World" $ printf "%b" "\e[1;32m$a\e[0m" Hello World $ a=" " $ printf "%b" "\e[1;32m$a\e[0m"