The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
retrive lines from a file using AWK command swamymns Shell Programming and Scripting 1 05-04-2008 06:47 PM
to retrive data that appear only once in a file. anibu Shell Programming and Scripting 1 10-26-2007 07:54 AM
Retrive deleted file's info asmita UNIX for Advanced & Expert Users 4 03-26-2007 10:36 PM
help to retrive data from log file d_swapneel14 Shell Programming and Scripting 5 07-06-2006 01:57 AM
Reading file names from a file and executing the relative file from shell script anushilrai Shell Programming and Scripting 4 03-10-2006 01:25 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #8 (permalink)  
Old 05-17-2008
Moderator
 

Join Date: Dec 2003
Location: /dev/florida
Posts: 954
Just to clarify things. You can have periods (full stops) in variable names but only in shells that support hierarchical name spaces (AKA compound variables) such as ksh93.

Code:
#!/usr/bin/ksh93

myvar=( name="era" job="herder" rest="of Useless Cats" )
var="era"
var.name="herder"
var.name.rest="of Useless Cats"

print ${myvar.rest}
print ${var.name.rest}
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:17 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0