Input file
- name: APPENV
value: STAGING
- name: ELASTICSEARCH_USER
value: elastic
- name: WRITE_LOGS_TO_ELASTICSEARCH
value: "true"
- name: version
value: "5"
Expected output:
APPENV: STAGING
ELASTICSEARCH_USER: elastic
WRITE_LOGS_TO_ELASTICSEARCH: "true"
version: "5"
tried awk -F "e:" '{print $2}' filename to abstract only key and value, but need to align this as above output. Any help would be appreciated