I'm trying to achieve the following results:
I have a command that spits out some env vars to the terminal:
./script
will output the following:
AWS_OKTA_PROFILE=xxx
AWS_ACCESS_KEY_ID=xxx
AWS_SECRET_ACCESS_KEY=xx
AWS_SECURITY_TOKEN=xx
AWS_SESSION_TOKEN=xx
I want to write this to an output file in another location to be almost the same except like this (but only before the equal sign)
[default]
aws_okta_profile=xxx
aws_access_key_id=xxx
aws_secret_access_key=xx
aws_security_token=xx
aws_session_token=xx
Notice, I'm also prepending [default]
to the file.
Thanks!