![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
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}
|
|||
| Google The UNIX and Linux Forums |
| Forum Sponsor | ||
|
|