Pretty darn simple I would have expected. I have a large .bashrc file I made years ago where everything is spelled out for values on my alias's.
I want to reduce the size of the file and make use of a variable to reference to avoid having to change the values throughout the entire file.
I've been at this for hours this morning and cannot figure out how to get the file to work with ${} references.
Example:
alias MYID='elijah'
alias DEVHOME='/opt/data/users'
alias MYHOME='${DEVHOME}/${MYID}'
I have tried the above with single quotes, double quotes with { and without the { but cannot get anything to populate into MYHOME.
Please show me how to set MYHOME so when I echo it, it states /opt/data/users/elijah.