I can't get path from variable in bash. How do it correct? For example:
my@PC:~$ a="~/.bashrc"
my@PC:~$ cat $a
cat: ~/.bashrc: No such file or directory
didn't work, but
cat .bashrc
and
cat ".bashrc"
Works well.
Here is right answer from fedorqui
cat $(eval echo $a)