for example echo -e "\001\033[5m\033[7m\002${var}\001\033[0m\002"
If the var is starting with non number character it works.
However, if the var starting with number it fails
for example var = 5
then the string is "\001\033[5m\033[7m\0025\001\033[0m\002"` for some reason it won't blink the 5 the screen has a blank line
While there's probably some way to escape a leading digit in ${var}
I'd opt to replace echo -e
with printf
, eg:
printf "\001\033[5m\033[7m\002%s\001\033[0m\002\n" "${var}"
NOTE: added \n
on the end to insure we get the same effect as echo
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With