I am trying to export some string variables from txt file.
ERROR_NOT_SUPPORTED_ARCH_MSG='ERROR: Unknown arch' ERROR_NOT_SUPPORTED_OS_V_MSG='ERROR: Not supported os version'
$ source file.txt $ export $(cut -f 1 file.txt)
and I am getting error like -
export: `arch'': not a valid identifier
So the question is if it is possible to export string variable with white spaces? What is the proper way to do it?