Я хочу заменить заполнитель в одном файле, используя значение из другого файла. Мне необходимо выполнить следующие условия
Условие:
1. Use sed/awk/bash to handle both ${VAR} and ${VAR:default} formats
2. When value found in Property.txt, it will replace with the value and default value will be ignored. Example:
3. When value not found in Property.txt, and default value is present, it will replace with default value. Example:
4. When value not found in Property.txt, and default value is also not present, replace with empty value. Example:
Input.txt
Property.txt
ums_sessions=35
sku_management_service.socket.timeout=120000
keystone.target.event.sqsurl=https://localhost
Вывод
Подробнее здесь: https://stackoverflow.com/questions/792 ... her-file-u
Мобильная версия