Category : escaping

I would like to pass the variable $styled to a script inside a docker container. The docker command would look something like docker exec container_name "/bin/bash -c cd /where/the/script/is && ./echo.sh $styled" the echo.sh would look like this #!/bin/bash echo -e $1 the variable $styled contains escape characters, so lets say it is: styled=$’e[7mSOME_TEXTe[27m’ On ..

Read more