LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-03-2008, 07:21 PM   #1
super_hill
LQ Newbie
 
Registered: Jan 2008
Location: Shanghai China
Distribution: Ubuntu
Posts: 8

Rep: Reputation: 0
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.
 
Old 12-03-2008, 07:37 PM   #2
garyg007
Member
 
Registered: Aug 2008
Location: north-east ohio
Distribution: Debian-squeeze/stable;
Posts: 279
Blog Entries: 1

Rep: Reputation: 31
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
gary@abitbox:~$ echo $abc
abc.def
gary@abitbox:~$

HTH

Gary

Last edited by garyg007; 12-03-2008 at 07:38 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
abc for linux arunmongoose LinuxQuestions.org Member Intro 3 11-19-2007 12:16 PM
With wine, do i sintall abc.exe to my windows drive or to my linux? mr_coffee Linux - Software 3 01-23-2006 01:44 PM
ABC bittorrent complilation help... cajunfox Mandriva 3 07-21-2004 06:53 AM
ABC help?! setlec_seta Linux - Software 2 04-24-2004 07:07 PM


All times are GMT -5. The time now is 11:19 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration