How do I declare a constant in shell script?
I can't find this information from the internet, is it not possible to declare a final constant variable whose value will not change after first initialization?
Solution 1:
I believe you can do something like:
readonly DATA=/usr/home/data/file.dat
You can also do:
declare -r var=123
Solution 2:
readonly FOO=bar