Você pode criar / modificar / excluir variáveis permanentes usando kv-bash
functions:
1) Faça o download do arquivo kv-bash
do github :
git clone https://github.com/damphat/kv-bash.git
cp -ar ./kv-bash/kv-bash /usr/local
chmod +x /usr/local/kv-bash
2) Importar funções kv-bash:
# You can also put this line in .bash_profile
source kv-bash
3) Agora crie / modifique variáveis
#let try create/modify/delete variable
kvset myEmail [email protected]
kvset myCommand "Very Long Long Long String"
#read the varible
kvget myEmail
#you can also use in another script with $(kvget myEmail)
echo $(kvget myEmail)
#delete variable
kvdel myEmail
Eu aprendi com isso
link