How to print contents of file when the file path is in a variable?

The file f1 contains the text "body" (shell prompt is "$"):

$ cat ~/path/f1
body

How to print contents of f1 when the f1 path is in a variable?
Here is my failed attempt:

$ f1="~/path/f1"
$ echo $f1
~/path/f1
$ cat $f1
cat: '~/path/f1': No such file or directory

loose " -s or use ${HOME} instead of ~

2 Likes

Thanks vgersh99, ${HOME} worked!