myvariable=`docker ps -a | grep mysql | awk ‘{print $1}’`echo $myvariable
The post How to store the result of a linux command into a variable appeared first on Martin Fournier.
myvariable=`docker ps -a | grep mysql | awk ‘{print $1}’`echo $myvariable
The post How to store the result of a linux command into a variable appeared first on Martin Fournier.