# Variable Expansion

1. [Home](https://www.agilicus.com/)
2. [launcher](https://www.agilicus.com/anyx-guide-topic/launcher/)
3. Variable Expansion

![Variable Expansion](https://www.agilicus.com/www/8f1f9e92-variable-expansion-1024x559.avif)## Variable Expansion

Template a string dynamically at run time

[CONTACT](/contact-us/)

## Variable Expansion

In some cases you may wish a string to be templated. For example in a share, mount /PATH/USERNAME. You may do that with string substitution. Variables may be expanded in the format of ${VARIABLE}.

The following variables are supported:

- AGILICUS\_USER\_FULL\_NAME
- AGILICUS\_USER\_FIRST\_NAME
- AGILICUS\_USER\_LAST\_NAME
- AGILICUS\_USER\_EXTERNAL\_ID
- AGILICUS\_USER\_EMAIL
- AGILICUS\_USER\_EMAIL\_NAME
- AGILICUS\_USER\_EMAIL\_DOMAIN

Variables may be expanded in Desktops, Shares, Launchers.

## Expansion Syntax

In addition to exact match substitution, you may use [bash-syntax](https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html) to do sub-string expansion.

Examples include:

- `${<var>parameter</var>:<var>offset</var>}` - expand from offset to end
- `${<var>parameter</var>:<var>offset</var>:<var>length</var>}` - expand from offset for length characters
- **${#**parameter**}** -- expand to the length in characters

See the bash [guide](https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html) for more information