Search results

  1. D

    Is there a way to store long commands in an env variable?

    I want to simply run the long command below. docker ps -a --format "table {{.Images}}\t{{.Ports}}" export view='docker ps -a --format "table {{.Images}}\t{{.Ports}}"' echo $view result But When I run the real variable, I get an error $view Result end Error code "docker ps" accepts...