Which is the shortest way to get the variable
I want to make this somewhat shorter:
$ sudo add-apt-repository \ "deb http://some-repo/ubuntu $(grep CODENAME lsb-release |sed s/^.*=//g) main"
You can source that file in
So you can try to rewrite it like this:
For details, check