How to set linux environment variable like abc.abc (With DOT in the string)
I want to set a special format environment variable abc.abc.
I tried the command: export abc.abc=test; But the prompt output shows: bash: Exprot: 'abc.abc=test' : not avalid identifier. Anyone has the solution? Thanks in advance. |
Variable name must begin with an Alphanumeric character or underscore character (_), followed by one or more Alphanumeric characters. That means that the variable name cannot contain any special characters other than underscore.
give the variable a name; then assign a value to it. For example: Code:
gary@abitbox:~$ export abc=abc.def HTH Gary |
All times are GMT -5. The time now is 05:49 PM. |