Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


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

Rep: Reputation: 0
How to set linux environment variable like (With DOT in the string)

I want to set a special format environment variable

I tried the command: export; But the prompt output shows: bash: Exprot: '' : not avalid identifier.

Anyone has the solution? Thanks in advance.
Old 12-03-2008, 07:37 PM   #2
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:
gary@abitbox:~$ export abc=abc.def
gary@abitbox:~$ echo $abc



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


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 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 > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:21 PM.

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