sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #45473
Re: shell - variabel = navnet på et andet variabel navn.. hvordan?
On Wed, Dec 12, 2001 at 02:43:36PM +0000, Klavs Klavsen wrote:
> Har i nogen ideer?
<SNIP man bash>
If the first character of parameter is an exclamation
point, a level of variable indirection is introduced.
Bash uses the value of the variable formed from the rest
of parameter as the name of the variable; this variable is
then expanded and that value is used in the rest of the
substitution, rather than the value of parameter itself.
This is known as indirect expansion. The exception to
this is the expansion of ${!prefix*} described below.
</SNIP>
--
Best Regards
Emil S. Hansen - esh@xxxxxxxxxxxxx - ESH14-DK
UNIX Administrator, Berlingske Tidende - www.berlingske.dk
PGP: 109375FA/ABEB 1EFA A764 529E 82B5 0943 AD3B 1FC2 1093 75FA
"Iøvrigt er det meget rart at slippe for den slags brugere." -
Mads Bondo Dydensborg om desktopbrugere.
Attachment:
pgplYfkIe_Ban.pgp
Description: PGP signature
Follow ups
References