Книга: Fedora™ Unleashed, 2008 edition

Accessing Variable Values

Accessing Variable Values

You can access the value of a variable by prefixing the variable name with a $ (dollar sign). That is, if the variable name is var, you can access the variable by using $var.

If you want to assign the value of var to the variable lcount, you can do so as follows:

Command Environment
lcount=$var bash
set lcount=$var tcsh

Оглавление книги


Генерация: 3.771. Запросов К БД/Cache: 3 / 0
поделиться
Вверх Вниз