I have a current bash script. echo
will display all results when cmd has been finished. But I want in real time see output coming line by line when script is in execution process. How can I achieve that?
#!/bin/bash
echo $(docker build -t goapp -f deployments/dev/Dockerfile .)
docker build -t goapp -f deployments/dev/Dockerfile . >> someFile.log
andtail -f someFile.log
may do the trick