github.com/keltia/go-ipfs@v0.3.8-0.20150909044612-210793031c63/test/3nodetest/bin/save_logs.sh (about) 1 # STRIP strips color from terminal output 2 STRIP="perl -pe 's/\e\[?.*?[\@-~]//g'" 3 4 # TODO use a for loop like a grownup 5 docker logs 3nodetest_bootstrap_1 2>&1 | eval $STRIP > ./build/bootstrap.log 6 docker logs 3nodetest_client_1 2>&1 | eval $STRIP > ./build/client.log 7 docker logs 3nodetest_data_1 2>&1 | eval $STRIP > ./build/data.log 8 docker logs 3nodetest_server_1 2>&1 | eval $STRIP > ./build/server.log