Talk about pipes and how to embrace the awesomest of unix and how to write good utility scripts that will save you time: Today I was struggling on generating valid python to pass in as bash Eventually I gave up trying to use Sed and written a very simple python script to solve my problem. I wish I have saved myself the effort of trying to script everything in bash. Show of how you can pass Stdin to docker containers if you pass -i flag
import sys
lines = sys.stdin.readlines()
print("bitbucket-key: |-")
for line in lines:
sys.stdout.write(" %s" % line),
Talk about pipes and how to embrace the awesomest of unix and how to write good utility scripts that will save you time: Today I was struggling on generating valid python to pass in as bash Eventually I gave up trying to use Sed and written a very simple python script to solve my problem. I wish I have saved myself the effort of trying to script everything in bash. Show of how you can pass Stdin to docker containers if you pass -i flag